ChangeTrackingPropertyBag..::..Set Method

Implementors need to override this to save the indicated value.

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

Syntax


public bool Set(
	Nullable<Object> value,
	PropertySetModes mode,
	string propertyName,
	out Nullable<Object> oldValue
)
Public Function Set ( _
	value As Nullable(Of Object), _
	mode As PropertySetModes, _
	propertyName As String, _
	<OutAttribute> ByRef oldValue As Nullable(Of Object) _
) As Boolean

Parameters

value
Type: Nullable<(Of <(<'Object>)>)>
The value to be saved. A null will set the value to null.
mode
Type: Tortuga.Anchor.Modeling.Internals..::..PropertySetModes
Indicates special handling for the action.
propertyName
Type: String
Name of property to update
oldValue
Type: Nullable<(Of <(<'Object>)>)>%
The previously stored value. If the property was uninitialized, this will return NotSet.Value

Return Value

True if the value actually changed

Exceptions


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

Remarks


This will create the property if it doesn't already exist