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 네임스페이스