PublishedEvent.ActionList.TryGetValue(String, PublishedAction) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value associated with the specified key.
public:
bool TryGetValue(System::String ^ actionName, [Runtime::InteropServices::Out] Microsoft::SqlServer::XEvent::Linq::PublishedAction ^ % value);
public bool TryGetValue (string actionName, out Microsoft.SqlServer.XEvent.Linq.PublishedAction value);
member this.TryGetValue : string * PublishedAction -> bool
Public Function TryGetValue (actionName As String, ByRef value As PublishedAction) As Boolean
Parameters
- actionName
- String
The name of the action to retrieve.
- value
- 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.
Returns
true
if the event contains a PublishedAction with the specified column; otherwise, false
.