Activity.Name 속성


이 인스턴스의 이름을 가져오거나 설정합니다.Gets or sets the name of this instance. 이 이름은 워크플로 프로젝트에 사용되는 프로그래밍 언어의 변수 명명 규칙을 따라야 합니다This name must conform to the variable naming convention of the programming language that is being used in the Workflow project.

 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String

속성 값

이 인스턴스의 이름입니다.The name of this instance.



다음 코드에서는 활동을 만들어 복합 활동에 자식으로 추가하고 Name 값을 설정하는 방법을 보여 줍니다.The following code shows how to create activities and add them as children to a composite activity and set the value for Name.

이 코드 예제는 ThrowWorkFlow.cs 파일에 있는 Throw SDK 샘플의 일부입니다.This code example is part of the Throw SDK sample and is from the ThrowWorkFlow.cs file. 자세한 내용은 Throw 샘플합니다.For more information, see Throw Sample.

this.CanModifyActivities = true;
System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
this.throwActivity1 = new System.Workflow.ComponentModel.ThrowActivity();
activitybind1.Name = "ThrowWorkflow";
activitybind1.Path = "ThrownException";
// throwActivity1
this.throwActivity1.Name = "throwActivity1";
this.throwActivity1.SetBinding(System.Workflow.ComponentModel.ThrowActivity.FaultProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
// ThrowWorkflow
this.Name = "ThrowWorkflow";
this.CanModifyActivities = false;
Me.CanModifyActivities = True
Dim activitybind1 As New System.Workflow.ComponentModel.ActivityBind()
Me.throwActivity1 = New System.Workflow.ComponentModel.ThrowActivity()
activitybind1.Name = "ThrowWorkflow"
activitybind1.Path = "ThrownException"
' throwActivity1
Me.throwActivity1.Name = "throwActivity1"
Me.throwActivity1.SetBinding(System.Workflow.ComponentModel.ThrowActivity.FaultProperty, activitybind1)
' ThrowWorkflow
Me.Name = "ThrowWorkflow"
Me.CanModifyActivities = False


이 속성의 기본값은 빈 문자열입니다.Default value for this is the empty string.

이 속성은 메타 속성이므로 런타임에 변경할 수 없습니다.This property is a meta property, which means it cannot be changed at runtime. 메타 속성은 런타임에 속성 인스턴스가 만들어진 후 변경되지 않으므로 디자인 타임에 속성을 리터럴 값으로 설정해야 합니다.Meta properties do not change after a property instance is created at runtime, so the property must be set to a literal value at design time.

적용 대상