Share via


Session.Validate Method (String)

Validates the specified method name.

Namespace:  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (in Microsoft.SqlServer.Management.XEvent.dll)

Syntax

'Declaration
Public Sub Validate ( _
    methodName As String _
)
'Usage
Dim instance As Session 
Dim methodName As String

instance.Validate(methodName)
public void Validate(
    string methodName
)
public:
void Validate(
    String^ methodName
)
member Validate : 
        methodName:string -> unit
public function Validate(
    methodName : String
)

Parameters

  • methodName
    Type: System.String
    A string value that contains the name of the method: ValidationMethod.Create or ValidationMethod.Alter.

Exceptions

Exception Condition
XEventException

Validation failed.

See Also

Reference

Session Class

Validate Overload

Microsoft.SqlServer.Management.XEvent Namespace