CodeActivityContext Class

Definition

扩展 ActivityContext 并为 CodeActivity 提供附加功能。Extends ActivityContext and provides additional functionality for CodeActivity.

public ref class CodeActivityContext : System::Activities::ActivityContext
public class CodeActivityContext : System.Activities.ActivityContext
type CodeActivityContext = class
    inherit ActivityContext
Public Class CodeActivityContext
Inherits ActivityContext
Inheritance
CodeActivityContext
Derived

Properties

ActivityInstanceId

获取当前正在执行的活动实例的唯一标识符。Gets the unique identifier of the currently executing activity instance.

(Inherited from ActivityContext)
DataContext

获取当前正在执行的活动的数据上下文。Gets the data context of the currently executing activity.

(Inherited from ActivityContext)
WorkflowInstanceId

获取当前正在执行的工作流实例的唯一标识符。Gets the unique identifier of the currently executing workflow instance.

(Inherited from ActivityContext)

Methods

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetExtension<T>()

返回指定类型的扩展。Returns an extension of the specified type.

(Inherited from ActivityContext)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetLocation<T>(LocationReference)

返回当前活动上下文的指定引用位置的类型化位置。Returns the typed location for the specified referenced location for the current activity context.

(Inherited from ActivityContext)
GetProperty<THandle>()

获取指定类型的执行属性。Gets the execution property of the specified type.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
GetValue(Argument)

获取指定的 Argument 的值。Gets the value of the specified Argument.

(Inherited from ActivityContext)
GetValue(RuntimeArgument)

获取指定的 RuntimeArgument 的值。Gets the value of the specified RuntimeArgument.

(Inherited from ActivityContext)
GetValue<T>(InArgument<T>)

获取指定的 InArgument<T> 的值。Gets the value of the specified InArgument<T>.

(Inherited from ActivityContext)
GetValue<T>(InOutArgument<T>)

获取指定的 InOutArgument<T> 的值。Gets the value of the specified InOutArgument<T>.

(Inherited from ActivityContext)
GetValue<T>(LocationReference)

获取指定的 LocationReference 的值。Gets the value at the specified LocationReference.

(Inherited from ActivityContext)
GetValue<T>(OutArgument<T>)

获取指定的 OutArgument<T> 的值。Gets the value of the specified OutArgument<T>.

(Inherited from ActivityContext)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
SetValue(Argument, Object)

为指定的 Argument 赋值。Assigns a value to the specified Argument.

(Inherited from ActivityContext)
SetValue<T>(InArgument<T>, T)

为指定的 InArgument<T> 赋值。Assigns a value to the specified InArgument<T>.

(Inherited from ActivityContext)
SetValue<T>(InOutArgument<T>, T)

为指定的 InOutArgument<T> 赋值。Assigns a value to the specified InOutArgument<T>.

(Inherited from ActivityContext)
SetValue<T>(LocationReference, T)

为指定的 LocationReference 赋值。Assigns a value to the specified LocationReference.

(Inherited from ActivityContext)
SetValue<T>(OutArgument<T>, T)

为指定的 OutArgument<T> 赋值。Assigns a value to the specified OutArgument<T>.

(Inherited from ActivityContext)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)
Track(CustomTrackingRecord)

将指定的自定义跟踪记录发送到已注册的任何跟踪提供程序。Sends the specified custom tracking record to any registered tracking providers.

Applies to