CodeActivityMetadata Struct

Definition

代表参数的集合,通过一个已配置 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
Inheritance
CodeActivityMetadata

Properties

Environment

获取活动的由 LocationReferenceEnvironment 引入的自变量或符号的 SymbolResolverGets 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.

Methods

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.

Operators

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.

Applies to