Activity.Id 属性

定义

获取特定请求专属的标识符。Gets an identifier that is specific to a particular request.

public:
 property System::String ^ Id { System::String ^ get(); };
public string? Id { get; }
public string Id { get; }
member this.Id : string
Public ReadOnly Property Id As String

属性值

String

活动 ID。The activity ID.

注解

ID 具有层次结构: root-id.id1_id2.id3_An ID has a hierarchical structure: root-id.id1_id2.id3_. Start() 通过向或附加后缀来调用时,将生成 ID Activity.Parent.Id ParentIdThe ID is generated when Start() is called by appending a suffix to the Activity.Parent.Id or the ParentId. Activity 开始之前没有 ID。An Activity has no ID until it starts. 有关详细信息,请参阅 Id 格式For more information, see Id Format.

适用于