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
属性值
活动 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 ParentId 。The 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.