ValueTypePropertyReference<TOperand,TResult> 클래스

정의

식에서 l-value로 사용할 수 있는 값 형식의 속성을 나타냅니다.

generic <typename TOperand, typename TResult>
public ref class ValueTypePropertyReference sealed : System::Activities::CodeActivity<System::Activities::Location<TResult> ^>
public sealed class ValueTypePropertyReference<TOperand,TResult> : System.Activities.CodeActivity<System.Activities.Location<TResult>>
type ValueTypePropertyReference<'Operand, 'Result> = class
    inherit CodeActivity<Location<'Result>>
Public NotInheritable Class ValueTypePropertyReference(Of TOperand, TResult)
Inherits CodeActivity(Of Location(Of TResult))

형식 매개 변수

TOperand

값 형식입니다.

TResult

속성 형식입니다.

상속
ValueTypePropertyReference<TOperand,TResult>

예제

다음 코드 예제에서는 작업에 사용 하 여 ValueTypePropertyReference<TOperand,TResult>Assign 속성에 값을 할당 string 하 고 콘솔에 속성 값을 인쇄 합니다. 이 Assign 작업은 다음 예제myStructVariable.AProperty = "Hello";에서 정의된 작업을 사용할 struct 때 다음 문과 동일합니다.

메모

l-value 식 작업을 직접 인스턴스화하는 ValueTypePropertyReference<TOperand,TResult> 대신 더 높은 수준의 추상화를 제공하고 워크플로를 보다 직관적으로 구현할 수 있도록 호출 ConvertReference하는 것이 좋습니다.

// Define a struct with a property named AProperty.
struct StructWithProperty
{
    public string AProperty { get; set; }
}

public static void ValueTypePropertyReferenceSample()
{
    // Create a variable of type StructWithProperty to store the property.
    var swpvar = new Variable<StructWithProperty>("swpvar", new StructWithProperty());

    // Create the top-level activity to be invoked later.
    Activity myActivity = new Sequence
    {
        Variables = { swpvar },
        Activities =
        {
            // Create an Assign activity for a property named AProperty.
            new Assign<string>
            {
                To = new ValueTypePropertyReference<StructWithProperty, string>
                {
                    OperandLocation = swpvar,
                    PropertyName = "AProperty",
                },
                // Assign a string literal to AProperty.
                Value = "Hello",
            },
            // Create a WriteLine activity to write the value of AProperty to the console.
            new WriteLine()
            {
                Text = ExpressionServices.Convert<string>(ctx => swpvar.Get(ctx).AProperty),
            }
        }
    };

    // Invoke the Sequence activity.
    WorkflowInvoker.Invoke(myActivity);
}

생성자

Name Description
ValueTypePropertyReference<TOperand,TResult>()

ValueTypePropertyReference<TOperand,TResult> 클래스의 새 인스턴스를 초기화합니다.

속성

Name Description
CacheId

워크플로 정의 범위 내에서 고유한 캐시의 식별자를 가져옵니다.

(다음에서 상속됨 Activity)
Constraints

에 대한 Constraint유효성 검사를 제공하도록 구성할 수 있는 활동 컬렉션을 Activity 가져옵니다.

(다음에서 상속됨 Activity)
DisplayName

디버깅, 유효성 검사, 예외 처리 및 추적에 사용되는 선택적 친숙한 이름을 가져오거나 설정합니다.

(다음에서 상속됨 Activity)
Id

워크플로 정의의 범위에서 고유한 식별자를 가져옵니다.

(다음에서 상속됨 Activity)
Implementation

지원되지 않습니다.

(다음에서 상속됨 CodeActivity<TResult>)
ImplementationVersion

활동의 구현 버전을 가져오거나 설정합니다.

(다음에서 상속됨 CodeActivity<TResult>)
OperandLocation

속성을 포함하는 값 형식의 인스턴스를 가져오거나 설정합니다.

PropertyName

속성의 이름을 가져오거나 설정합니다.

Result

에 대한 결과 인수를 Activity<TResult>가져오거나 설정합니다.

(다음에서 상속됨 Activity<TResult>)
ResultType

파생 클래스에서 구현되는 경우 활동의 OutArgument형식을 가져옵니다.

(다음에서 상속됨 ActivityWithResult)

메서드

Name Description
CacheMetadata(ActivityMetadata)

구현되지 않았습니다. CacheMetadata(CodeActivityMetadata)를 대신 사용하세요.

(다음에서 상속됨 CodeActivity<TResult>)
CacheMetadata(CodeActivityMetadata)

활동의 인수, 변수, 자식 활동 및 활동 대리자의 설명을 만들고 유효성을 검사합니다.

(다음에서 상속됨 CodeActivity<TResult>)
Equals(Object)

지정한 개체와 현재 개체가 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
Execute(CodeActivityContext)

파생 클래스에서 구현되는 경우 활동의 실행을 수행합니다.

(다음에서 상속됨 CodeActivity<TResult>)
GetHashCode()

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

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

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

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

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

(다음에서 상속됨 Object)
OnCreateDynamicUpdateMap(UpdateMapMetadata, Activity)

동적 업데이트에 대한 맵을 만들 때 이벤트를 발생합니다.

(다음에서 상속됨 CodeActivity<TResult>)
ShouldSerializeDisplayName()

속성을 serialize해야 하는지 여부를 DisplayName 나타냅니다.

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

StringId 포함하는 값을 반환합니다 DisplayNameActivity.

(다음에서 상속됨 Activity)

적용 대상