共用方式為


PublishedEvent.ActionList.TryGetValue 方法

Gets the value associated with the specified key.

命名空間:  Microsoft.SqlServer.XEvent.Linq
組件:  Microsoft.SqlServer.XEvent.Linq (在 Microsoft.SqlServer.XEvent.Linq.dll 中)

語法

'宣告
Public Function TryGetValue ( _
    actionName As String, _
    <OutAttribute> ByRef value As PublishedAction _
) As Boolean
'用途
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

參數

  • actionName
    型別:System.String
    The name of the action to retrieve.
  • value
    型別: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.

傳回值

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

請參閱

參考

PublishedEvent.ActionList 類別

Microsoft.SqlServer.XEvent.Linq 命名空間