ActivityContext.TryParse メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| TryParse(String, String, ActivityContext) |
W3C トレース コンテキスト ヘッダーを ActivityContext オブジェクトに解析しようとします。 |
| TryParse(String, String, Boolean, ActivityContext) |
W3C トレース コンテキスト ヘッダーを ActivityContext オブジェクトに解析しようとします。 |
TryParse(String, String, ActivityContext)
W3C トレース コンテキスト ヘッダーを ActivityContext オブジェクトに解析しようとします。
public:
static bool TryParse(System::String ^ traceParent, System::String ^ traceState, [Runtime::InteropServices::Out] System::Diagnostics::ActivityContext % context);
public static bool TryParse(string? traceParent, string? traceState, out System.Diagnostics.ActivityContext context);
public static bool TryParse(string traceParent, string? traceState, out System.Diagnostics.ActivityContext context);
static member TryParse : string * string * ActivityContext -> bool
Public Shared Function TryParse (traceParent As String, traceState As String, ByRef context As ActivityContext) As Boolean
パラメーター
- traceParent
- String
W3C トレースの親ヘッダー。
- traceState
- String
W3C トレースの状態。
- context
- ActivityContext
このメソッドが trueを返すと、解析操作から作成された ActivityContext オブジェクト。
返品
true 解析が成功した場合。それ以外の場合 false 。
適用対象
TryParse(String, String, Boolean, ActivityContext)
W3C トレース コンテキスト ヘッダーを ActivityContext オブジェクトに解析しようとします。
public:
static bool TryParse(System::String ^ traceParent, System::String ^ traceState, bool isRemote, [Runtime::InteropServices::Out] System::Diagnostics::ActivityContext % context);
public static bool TryParse(string? traceParent, string? traceState, bool isRemote, out System.Diagnostics.ActivityContext context);
static member TryParse : string * string * bool * ActivityContext -> bool
Public Shared Function TryParse (traceParent As String, traceState As String, isRemote As Boolean, ByRef context As ActivityContext) As Boolean
パラメーター
- traceParent
- String
W3C トレースの親ヘッダー。
- traceState
- String
W3C トレースの状態。
- isRemote
- Boolean
true リモート親からコンテキストを伝達する場合。それ以外の場合は false。
- context
- ActivityContext
このメソッドから制御が戻るときに、解析操作から作成された ActivityContext オブジェクトが格納されます。
返品
true 操作が成功した場合。それ以外の場合 false 。