Partager via


Méthode SqlSmoObject.CheckObjectState (Boolean)

Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Protected Overridable Sub CheckObjectState ( _
    throwIfNotCreated As Boolean _
)
'Utilisation
Dim throwIfNotCreated As Boolean 

Me.CheckObjectState(throwIfNotCreated)
protected virtual void CheckObjectState(
    bool throwIfNotCreated
)
protected:
virtual void CheckObjectState(
    bool throwIfNotCreated
)
abstract CheckObjectState : 
        throwIfNotCreated:bool -> unit  
override CheckObjectState : 
        throwIfNotCreated:bool -> unit
protected function CheckObjectState(
    throwIfNotCreated : boolean
)

Paramètres

  • throwIfNotCreated
    Type : System.Boolean
    A Boolean value that specifies whether to throw an exception if the object is not yet created.If True, the method throws an exception if the object is not yet created. Otherwise, False.

Notes

Appel de méthodes

Voir aussi

Référence

SqlSmoObject Classe

Surcharge CheckObjectState

Espace de noms Microsoft.SqlServer.Management.Smo