Share via


GoToActivity.SetBinding Method (BindableInstanceDependencyProperty, ActivityBind)

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Sets the System.Workflow.ComponentModel.ActivityBind for the specified BindableInstanceDependencyProperty.

Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)

Syntax

'Declaration
Public Sub SetBinding ( _
    dependencyProperty As BindableInstanceDependencyProperty, _
    bind As ActivityBind _
)
public void SetBinding (
    BindableInstanceDependencyProperty dependencyProperty,
    ActivityBind bind
)

Parameters

  • bind
    The ActivityBind to set to.

Exceptions

Exception type Condition
ArgumentNullException

dependencyProperty is null.

ArgumentException

DefaultMetaData on the property is not null and is read-only.

OwnerType on the property is null.

DefaultMetaData on the property is not null, DefaultMetaData.IsMetaData is true, and PropertyType on the property is not a type that can be assigned from.

InvalidOperationException

An attempt is made to change the property at run time.

The property is not attached to a type and OwnerType on the property cannot be changed.

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

Windows Server 2003

See Also

Reference

GoToActivity Class
GoToActivity Members
Microsoft.SpeechServer.Dialog Namespace