Sets the value of the property with the given ID.

Namespace: DigitalRune.Game
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.0.0.0 (1.0.1.9459)

Syntax

C#
public void SetValue<T>(
	int propertyId,
	T value
)
Visual Basic
Public Sub SetValue(Of T) ( _
	propertyId As Integer, _
	value As T _
)
Visual C++
public:
generic<typename T>
void SetValue(
	int propertyId, 
	T value
)

Parameters

propertyId
Type: System..::..Int32
The ID of the property.
value
Type: T
The new value.

Type Parameters

T
The type of the property value.

Exceptions

ExceptionCondition
System..::..ArgumentException The propertyId is invalid. Properties must be defined with CreateProperty<(Of <<'(T>)>>)(String, String, String, T) before they can be used.

See Also