語言

CorrelationDataMessageProperty.TryGetValue(String, String) 方法

定義

嘗試從資料提供者私有字典中擷取指定的相關資料提供者。

public:
 bool TryGetValue(System::String ^ name, [Runtime::InteropServices::Out] System::String ^ % value);
public bool TryGetValue(string name, out string value);
member this.TryGetValue : string * string -> bool
Public Function TryGetValue (name As String, ByRef value As String) As Boolean

參數

name
String

資料提供者的名稱。

value
String

當此方法回傳時,包含資料提供者的值(若存在);否則,。 null 這個參數會未初始化傳遞。

傳回

true 若 包含 CorrelationDataMessageProperty 指定的相關資料提供者;否則, false。

適用於