Partager via


Méthode TSqlAuditEventTypeHelper.TryParseOption

Indicates whether the sql version tries to parse the input string into the audit event type.

Espace de noms :  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly :  Microsoft.SqlServer.TransactSql.ScriptDom (en Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Syntaxe

'Déclaration
Public Shared Function TryParseOption ( _
    input As String, _
    version As SqlVersion, _
    <OutAttribute> ByRef returnValue As EventNotificationEventType _
) As Boolean
'Utilisation
Dim input As String 
Dim version As SqlVersion 
Dim returnValue As EventNotificationEventType 
Dim returnValue As Boolean 

returnValue = TSqlAuditEventTypeHelper.TryParseOption(input, _
    version, returnValue)
public static bool TryParseOption(
    string input,
    SqlVersion version,
    out EventNotificationEventType returnValue
)
public:
static bool TryParseOption(
    String^ input, 
    SqlVersion version, 
    [OutAttribute] EventNotificationEventType% returnValue
)
static member TryParseOption : 
        input:string * 
        version:SqlVersion * 
        returnValue:EventNotificationEventType byref -> bool
public static function TryParseOption(
    input : String, 
    version : SqlVersion, 
    returnValue : EventNotificationEventType
) : boolean

Paramètres

Valeur de retour

Type : System.Boolean
True if the input string represents a valid audit event group on the specified sql version; otherwise, false.

Voir aussi

Référence

TSqlAuditEventTypeHelper Classe

Espace de noms Microsoft.SqlServer.TransactSql.ScriptDom