共用方式為


ActivityTraceId.CreateRandom 方法

定義

根據隨機數字 (極可能是唯一值) 建立新的 ActivityTraceId

public:
 static System::Diagnostics::ActivityTraceId CreateRandom();
public static System.Diagnostics.ActivityTraceId CreateRandom ();
static member CreateRandom : unit -> System.Diagnostics.ActivityTraceId
Public Shared Function CreateRandom () As ActivityTraceId

傳回

新的 ActivityTraceId

適用於