CorrelationProperty 클래스

정의

주의

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

메시지를 특정 수신 활동과 상호 연결하는 데 사용되는 이름 및 값 쌍을 나타냅니다.

public ref class CorrelationProperty
[System.Serializable]
public class CorrelationProperty
[System.Serializable]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class CorrelationProperty
[<System.Serializable>]
type CorrelationProperty = class
[<System.Serializable>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type CorrelationProperty = class
Public Class CorrelationProperty
상속
CorrelationProperty
특성

예제

다음 예제에서는 상관 관계 속성 개체를 만들고 Name 및 Value 속성에 액세스하는 방법을 보여 줍니다.

// Create a new Correlation Property object
CorrelationProperty correlationProperty = new CorrelationProperty("taskName", "reportBalance");
// Read the property name
string taskName = correlationProperty.Name;
// Read the property value
Object taskValue = correlationProperty.Value;
' Create a new Correlation Property object
Dim correlationProperty As New CorrelationProperty("taskName", "reportBalance")
' Read the property name
Dim taskName As String = correlationProperty.Name
' Read the property value
Dim taskValue As Object = correlationProperty.Value

설명

참고

이 자료에서는 더 이상 사용되지 않는 형식과 네임스페이스에 대해 설명합니다. 자세한 내용은 Deprecated Types in Windows Workflow Foundation 4.5(Windows Workflow Foundation 4.5에서 사용되지 않는 형식)를 참조하세요.

CorrelationProperty 클래스는 워크플로 연결 서비스 활동의 ActivityBind 속성으로 정의됩니다. 기본적으로 이러한 속성은 루트 워크플로 활동으로 선언된 변수에 바인딩됩니다. ReplicatorActivityConditionedActivityGroup과 같은 동적 활동의 경우 각 자식이 범용 CorrelationProperty 개체를 공유할 수 없습니다. ReplicatorActivity 내부의 각 작업이 해당 대화를 관리해야 하는 시나리오를 고려해 보십시오. ReplicatorActivity 내부의 자식 활동은 실행 컨텍스트별 또는 작업별로 고유한 CorrelationProperty 인스턴스를 필요로 합니다. 이를 구현하려면 CorrelationProperty 인스턴스 속성이 있는 사용자 지정 활동을 정의해야 하며, 워크플로 연결 서비스 활동이 이 속성에 바인딩되어야 합니다.

생성자

CorrelationProperty(String, Object)

CorrelationProperty 클래스의 새 인스턴스를 초기화합니다.

속성

Name

상관 관계 집합에 사용되는 속성의 이름을 가져옵니다.

Value

상관 관계 집합 속성의 값을 가져옵니다.

메서드

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상