IPersistableObjectCanSetProperty Method

Gets whether the specified property can be set. If returns , then SetProperty, SetProperties, ReplaceProperties and TryReplaceProperty methods throw an InvalidOperationException for the specified propertyName.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
bool CanSetProperty(
	string propertyName,
	Object? value
)

Parameters

propertyName  String
Name of the property.
value  Object
The property value to set.

Return Value

Boolean
, if the specified property can be set; otherwise, .

See Also