PublishedEvent.FieldList.TryGetValue(String, PublishedEventField) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得與指定索引鍵相關聯的值。
public:
bool TryGetValue(System::String ^ fieldName, [Runtime::InteropServices::Out] Microsoft::SqlServer::XEvent::Linq::PublishedEventField ^ % value);
public bool TryGetValue(string fieldName, out Microsoft.SqlServer.XEvent.Linq.PublishedEventField value);
member this.TryGetValue : string * PublishedEventField -> bool
Public Function TryGetValue (fieldName As String, ByRef value As PublishedEventField) As Boolean
參數
- fieldName
- String
要取回的欄位名稱。
- value
- PublishedEventField
當此方法回傳時,包含與指定鍵相關聯的欄位,若找到該鍵。 否則,值參數型態的預設值。 這個參數會未初始化傳遞。
傳回
true如果事件包含欄位與指定欄位;否則,。 false