CodeActivityMetadata 結構

定義

表示設定的CodeActivity 導入至執行環境的引數集。Represents the set of arguments that a configured CodeActivity introduces to the execution environment.

public value class CodeActivityMetadata
public struct CodeActivityMetadata
type CodeActivityMetadata = struct
Public Structure CodeActivityMetadata
繼承
CodeActivityMetadata

屬性

Environment

取得由 SymbolResolver 所導入引數或符號之活動的 LocationReferenceEnvironmentGets the activity's LocationReferenceEnvironment of arguments or symbols introduced by a SymbolResolver.

HasViolations

取得值,這個值會表示中繼資料是否有任何驗證錯誤。Gets a value that indicates whether there are any validation errors in the metadata.

方法

AddArgument(RuntimeArgument)

將引數加入至活動的引數集合。Adds an argument to the collection of arguments of an activity.

AddDefaultExtensionProvider<T>(Func<T>)

將指定的擴充提供者加入至活動預設擴充功能提供者的集合。Adds the specified extension provider to the collection of default extension providers for the activity.

AddValidationError(String)

使用指定的描述,將驗證錯誤新增至中繼資料的驗證錯誤集合。Adds a validation error to the metadata's collection of validation errors using the specified description.

AddValidationError(ValidationError)

將所指定驗證錯誤新增至中繼資料的驗證錯誤集合。Adds the specified validation error to the metadata's collection of validation errors.

Bind(Argument, RuntimeArgument)

將指定的 Argument 繫結至指定的 RuntimeArgumentBinds the specified Argument to the specified RuntimeArgument.

Equals(Object)

判斷指定的物件是否和這個中繼資料執行個體相等。Determines whether the specified object is equal to this metadata instance.

GetArgumentsWithReflection()

傳回使用反映取得的引數集合。Returns a collection of arguments obtained by using reflection.

GetHashCode()

傳回這個中繼資料執行個體的唯一識別碼。Returns a unique identifier for this metadata instance.

RequireExtension(Type)

指定活動在執行階段需要指定型別的擴充。Specifies that the activity requires an extension of the specified type at runtime.

RequireExtension<T>()

指定活動在執行階段需要指定的泛型型別的擴充。Specifies that the activity requires an extension of the specified generic type at runtime.

SetArgumentsCollection(Collection<RuntimeArgument>)

將引數的指定集合新增至活動的引數。Adds the specified collection of arguments to the activity's arguments.

SetValidationErrorsCollection(Collection<ValidationError>)

將所指定驗證錯誤集合新增至中繼資料的驗證錯誤集合。Adds the specified collection of validation errors to the metadata's collection of validation errors.

運算子

Equality(CodeActivityMetadata, CodeActivityMetadata)

傳回值,這個值表示兩個指定的中繼資料執行個體是否相等。Returns a value that indicates whether the two specified metadata instances are equal.

Inequality(CodeActivityMetadata, CodeActivityMetadata)

傳回值,這個值表示兩個指定的中繼資料執行個體是否不相等。Returns a value that indicates whether the two specified metadata instances are not equal.

適用於