Condividi tramite


Metodo PublishedEvent.FieldList.TryGetValue

Gets the value associated with the specified key.

Spazio dei nomi  Microsoft.SqlServer.XEvent.Linq
Assembly:  Microsoft.SqlServer.XEvent.Linq (in Microsoft.SqlServer.XEvent.Linq.dll)

Sintassi

'Dichiarazione
Public Function TryGetValue ( _
    fieldName As String, _
    <OutAttribute> ByRef value As PublishedEventField _
) As Boolean
'Utilizzo
Dim instance As PublishedEvent.FieldList 
Dim fieldName As String 
Dim value As PublishedEventField 
Dim returnValue As Boolean 

returnValue = instance.TryGetValue(fieldName, _
    value)
public bool TryGetValue(
    string fieldName,
    out PublishedEventField value
)
public:
bool TryGetValue(
    String^ fieldName, 
    [OutAttribute] PublishedEventField^% value
)
member TryGetValue : 
        fieldName:string * 
        value:PublishedEventField byref -> bool
public function TryGetValue(
    fieldName : String, 
    value : PublishedEventField
) : boolean

Parametri

  • fieldName
    Tipo: System.String
    The name of the field to retrieve.
  • value
    Tipo: Microsoft.SqlServer.XEvent.Linq.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.

Valore restituito

Tipo: System.Boolean
true if the event contains a field with the specified column; otherwise, false.

Vedere anche

Riferimento

PublishedEvent.FieldList Classe

Spazio dei nomi Microsoft.SqlServer.XEvent.Linq