LocationReference Class

Definition

提供一种用于在运行时对 Location 进行解析的机制。Provides a mechanism by which a Location can be resolved at runtime.

public ref class LocationReference abstract
public abstract class LocationReference
type LocationReference = class
Public MustInherit Class LocationReference
Inheritance
LocationReference
Derived

Remarks

VariableRuntimeArgumentDelegateArgument 均为 LocationReferenceVariable, RuntimeArgument, and DelegateArgument are all LocationReferences. 运行时可在一个环境中管理与每个 ActivityInstance 关联的状态。The runtime manages state in an environment associated with each ActivityInstance. Location 是存储在此环境中的值的读/写代理。A Location is a read/write proxy to a value stored in this environment. LocationReference 提供一种用于在运行时对 Location 进行解析的机制。A LocationReference provides a mechanism by which a Location can be resolved at runtime.

这是一个抽象类。This is an abstract class.

Constructors

LocationReference()

创建 LocationReference 类的新实例。Creates a new instance of the LocationReference class.

Properties

Name

获取或设置 LocationReference 的名称。Gets or sets the name of the LocationReference.

NameCore

通过派生类实现时,获取或设置 LocationReference 的名称已经过区域性本地化的版本。When implemented by a derived class, gets or sets the culturally localized version of the name of the LocationReference.

Type

获取或设置 LocationReference的类型。Gets or sets the type of the LocationReference.

TypeCore

在派生类中实现时,获取或设置 LocationReference 的类型已经过区域性本地化的版本。When implemented in a derived class, gets or sets the culturally localized version of the type of the LocationReference.

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

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

(Inherited from Object)
GetLocation(ActivityContext)

当在派生类中实现时,从 LocationReference 对象中提取 ActivityContext 的位置。When implemented in a derived class, extracts the location for a LocationReference from an ActivityContext object.

GetType()

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

(Inherited from Object)
MemberwiseClone()

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

(Inherited from Object)
ToString()

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

(Inherited from Object)

Applies to