ValueTypeFieldReference<TOperand,TResult> 클래스

정의

식에서 l-value로 사용할 수 있는 값 형식의 필드를 나타냅니다.

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

형식 매개 변수

TOperand

값 형식입니다.

TResult

필드 형식입니다.

상속
ValueTypeFieldReference<TOperand,TResult>

예제

다음 코드 예제에서는 작업에 사용하여 ValueTypeFieldReference<TOperand,TResult>Assign 필드에 정수 값을 할당하고 필드 값을 콘솔에 출력합니다. 이 Assign 작업은 다음 예제에서 정의된 작업을 사용할 struct 때 다음 문과 동일합니다. myStructVariable.AField = 1;;

메모

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

// Define a struct with a field named AField.
struct StructWithField
{
    public int AField;
}

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

    Activity myActivity = new Sequence
    {
        Variables = { swfvar },
        Activities =
        {
            // Create an Assign activity to assign a value to the AField field.
            new Assign<int>
            {
                To = new ValueTypeFieldReference<StructWithField, int>()
                {
                    OperandLocation = swfvar,
                    FieldName = "AField",
                },
                // Assign an integer value to AField.
                Value = 1,
            },
            // Print the new field value to the console.
            new WriteLine()
            {
                Text = ExpressionServices.Convert<string>(ctx => swfvar.Get(ctx).AField.ToString()),
            }
        }
    };

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

생성자

Name Description
ValueTypeFieldReference<TOperand,TResult>()

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

속성

Name Description
CacheId

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

(다음에서 상속됨 Activity)
Constraints

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

(다음에서 상속됨 Activity)
DisplayName

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

(다음에서 상속됨 Activity)
FieldName

필드의 이름을 가져오거나 설정합니다.

Id

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

(다음에서 상속됨 Activity)
Implementation

지원되지 않습니다.

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

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

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

필드가 포함된 값 형식의 인스턴스를 가져오거나 설정합니다.

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)

적용 대상