共用方式為


ILatencyContextTokenIssuer.GetMeasureToken(String) 方法

定義

取得具名量值的標記。

public:
 Microsoft::Extensions::Diagnostics::Latency::MeasureToken GetMeasureToken(System::String ^ name);
public Microsoft.Extensions.Diagnostics.Latency.MeasureToken GetMeasureToken (string name);
abstract member GetMeasureToken : string -> Microsoft.Extensions.Diagnostics.Latency.MeasureToken
Public Function GetMeasureToken (name As String) As MeasureToken

參數

name
String

量值的名稱。

傳回

要搭配 AddMeasure(MeasureToken, Int64)RecordMeasure(MeasureToken, Int64)使用的令牌。

例外狀況

namenull

適用於