Activity<TResult> 클래스

정의

기존 Activity 개체에서 복합 작업을 만드는 데 사용되는 추상 기본 클래스입니다. 이 개체는 작업의 형식 지정자를 사용하여 결과 형식을 지정합니다.

generic <typename TResult>
public ref class Activity abstract : System::Activities::ActivityWithResult
[System.ComponentModel.TypeConverter(typeof(System.Activities.XamlIntegration.ActivityWithResultConverter))]
public abstract class Activity<TResult> : System.Activities.ActivityWithResult
[<System.ComponentModel.TypeConverter(typeof(System.Activities.XamlIntegration.ActivityWithResultConverter))>]
type Activity<'Result> = class
    inherit ActivityWithResult
Public MustInherit Class Activity(Of TResult)
Inherits ActivityWithResult

형식 매개 변수

TResult

작업의 반환 값 형식입니다.

상속
Activity<TResult>
파생
특성

예제

다음 예제에서는 Activity<TResult>에서 클래스를 파생하는 방법을 보여 줍니다.

public sealed class AppendString : Activity<string>
{
    // Input argument.
    [RequiredArgument]
    public InArgument<string> Name { get; set; }

    public AppendString()
    {
        // Define the implementation of this activity.
        this.Implementation = () => new Assign<string>
        {
            Value = new LambdaValue<string>(ctx => Name.Get(ctx) + " says hello world"),
            To = new LambdaReference<string>(ctx => Result.Get(ctx)),
        };
    }
}

설명

Activity<TResult>는 작업 형식 계층 구조의 기본 클래스입니다. CodeActivity<TResult>, NativeActivity<TResult>, AsyncCodeActivity<TResult>DynamicActivity<TResult>와 같은 제네릭 형식 정의를 포함하는 다른 모든 활동 형식은 이 클래스에서 파생됩니다.

생성자

Activity<TResult>()

파생 클래스에서 구현된 경우 파생 클래스의 새 인스턴스를 만듭니다.

속성

CacheId

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

(다음에서 상속됨 Activity)
Constraints

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

(다음에서 상속됨 Activity)
DisplayName

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

(다음에서 상속됨 Activity)
Id

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

(다음에서 상속됨 Activity)
Implementation

실행 논리를 포함하는 Activity를 반환하는 대리자를 가져오거나 설정합니다.

(다음에서 상속됨 Activity)
ImplementationVersion

사용한 구현의 버전을 가져오거나 설정합니다.

(다음에서 상속됨 Activity)
Result

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

ResultType

파생 클래스에서 구현하는 경우 작업 OutArgument의 형식을 가져옵니다.

(다음에서 상속됨 ActivityWithResult)

메서드

CacheMetadata(ActivityMetadata)

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

(다음에서 상속됨 Activity)
Equals(Object)

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

(다음에서 상속됨 Object)
FromValue(TResult)

지정한 값으로 계산되는 Activity<TResult> 식을 반환합니다.

FromVariable(Variable)

지정한 Activity<TResult>로 계산되는 Variable 식을 반환합니다.

FromVariable(Variable<TResult>)

지정한 Activity<TResult>로 계산되는 Variable<T> 식을 반환합니다.

GetHashCode()

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

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

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

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

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

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

동적 업데이트 맵을 만들 때 이벤트를 발생시킵니다.

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

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

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

StringIdDisplayName을 포함하는 Activity을 반환합니다.

(다음에서 상속됨 Activity)

연산자

Implicit(TResult to Activity<TResult>)

지정한 값으로 계산되는 Activity<TResult> 식을 반환합니다.

Implicit(Variable to Activity<TResult>)

지정한 Activity<TResult>로 계산되는 Variable 식을 반환합니다.

Implicit(Variable<TResult> to Activity<TResult>)

지정한 Activity<TResult>로 계산되는 Variable<T> 식을 반환합니다.

적용 대상