ActivityBind.Name Property

 

Gets or sets the name of the Activity that the ActivityBind points to.

Namespace:   System.Workflow.ComponentModel
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

[ConstructorArgumentAttribute("name")]
public string Name { get; set; }

Property Value

Type: System.String

The name of the Activity that the ActivityBind points to.

Exception Condition
ReadOnlyException

Occurs when you attempt to set this value when the ActivityBind is not in design mode.

This example illustrates creating and using an ActivityBind and also of setting the Name.

This code example is part of the Throw Activity SDK sample and is from the ThrowActivity.cs file. For more information, see Using the ThrowActivity Activity.

.NET Framework
Available since 3.0
Return to top
Show: