CorrelationToken.Initialized 属性

定义

获取一个值,该值指示是否初始化 CorrelationToken

public:
 property bool Initialized { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool Initialized { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Initialized : bool
Public ReadOnly Property Initialized As Boolean

属性值

Boolean

如果初始化了 CorrelationToken,则为 true;否则为 false

属性

示例

下面的示例演示如何访问相关标记对象的 Initialized 属性。

// Create a new Correlation Token
CorrelationToken testToken = new CorrelationToken();
// Read the Initialized value
Boolean tokenInitialized = testToken.Initialized;
' Create a new Correlation Token
Dim testToken As New CorrelationToken()
' Read the Initialized value
Dim tokenInitialized As Boolean = testToken.Initialized

注解

若要初始化相关标记,请使用 Initialize

适用于