AbstractModelCollection<(Of <(<'T, TPropertyTracking>)>)>..::..Set Method (Object, String)

Set the indicated property to the value. If the value doesn't match the previous value, or if there is no previous value, raise a property changed notification.

Namespace:  Tortuga.Anchor.Modeling.Internals
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


protected bool Set(
	Object value,
	string propertyName
)
Protected Function Set ( _
	value As Object, _
	propertyName As String _
) As Boolean

Parameters

value
Type: Object
Value to be saved.
propertyName
Type: String
Name of property to be created/updated

Exceptions


ExceptionCondition
[ArgumentNullException]propertyName;propertyName is null
[ArgumentException]propertyName is null or empty.;propertyName