SetValue(T) Method (T, InstanceDependencyProperty, )

Sets the value of an InstanceDependencyProperty at design time.

Namespace: Microsoft.Rtc.Workflow.Activities
Assembly: Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)


Public Shared Sub SetValue(Of T As {Activity, IInstanceDependencyContainer}) ( _
    dependencyObject As T, _
    property As InstanceDependencyProperty, _
    value As Object _
public static void SetValue<T>(
    T dependencyObject,
    InstanceDependencyProperty property,
    Object value
where T : Activity, IInstanceDependencyContainer
generic<typename T>
where T : Activity, IInstanceDependencyContainer
static void SetValue(
    T dependencyObject, 
    InstanceDependencyProperty^ property, 
    Object^ value
JavaScript does not support generic types or methods.


  • dependencyObject
    Type: T
  • value
    Type: Object

Type Parameters

  • T
    A specific Activity or IInstanceDependencyContainer type.


Exception Condition
InvalidOperationException Thrown if the activity is not enabled.
InvalidOperationException Thrown if the property is read-only and already has a value.

See Also

InstanceDependencyHelper Class

SetValue Overload

Microsoft.Rtc.Workflow.Activities Namespace