PublishedEvent.FieldList.TryGetValue(String, PublishedEventField) Method

Definition

Gets the value associated with the specified key.

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

Parameters

fieldName
String

The name of the field to retrieve.

value
PublishedEventField

When this method returns, contains the field associated with the specified key, if the key is found. Otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Returns

true if the event contains a field with the specified column; otherwise, false.

Applies to