Compartir a través de


PublishedEvent.ActionList.TryGetValue Método

Gets the value associated with the specified key.

Espacio de nombres:  Microsoft.SqlServer.XEvent.Linq
Ensamblado:  Microsoft.SqlServer.XEvent.Linq (en Microsoft.SqlServer.XEvent.Linq.dll)

Sintaxis

'Declaración
Public Function TryGetValue ( _
    actionName As String, _
    <OutAttribute> ByRef value As PublishedAction _
) As Boolean
'Uso
Dim instance As PublishedEvent.ActionList 
Dim actionName As String 
Dim value As PublishedAction 
Dim returnValue As Boolean 

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

Parámetros

  • actionName
    Tipo: System.String
    The name of the action to retrieve.
  • value
    Tipo: Microsoft.SqlServer.XEvent.Linq.PublishedAction%
    When this method returns, contains the PublishedAction 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.

Valor devuelto

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

Vea también

Referencia

PublishedEvent.ActionList Clase

Espacio de nombres Microsoft.SqlServer.XEvent.Linq