SetValue(T) Method (T, , InstanceDependencyProperty, )
Sets the value of an InstanceDependencyProperty.
Namespace: Microsoft.Rtc.Workflow.Activities
Assembly: Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)
Syntax
'Declaration
Public Shared Sub SetValue(Of T As {Activity, IInstanceDependencyContainer}) ( _
dependencyObject As T, _
instanceId As Guid, _
property As InstanceDependencyProperty, _
value As Object _
)
public static void SetValue<T>(
T dependencyObject,
Guid instanceId,
InstanceDependencyProperty property,
Object value
)
where T : Activity, IInstanceDependencyContainer
public:
generic<typename T>
where T : Activity, IInstanceDependencyContainer
static void SetValue(
T dependencyObject,
Guid instanceId,
InstanceDependencyProperty^ property,
Object^ value
)
JavaScript does not support generic types or methods.
Parameters
- dependencyObject
Type: T
The dependency object containing the property.
- instanceId
Type: Guid
Activity workflow instance ID.
- property
Type: Microsoft.Rtc.Workflow.Activities..::.InstanceDependencyProperty
The property to set.
- value
Type: Object
The new value of the property.
Type Parameters
- T
A specific Activity or IInstanceDependencyContainer type.
Remarks
An exception is thrown if the property is read-only. An exception is also thrown if the value is not of the right type.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if the activity is not enabled. |
InvalidOperationException | Thrown if the property is read-only and already has a value. |