共用方式為


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.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Protected Overridable Sub CheckObjectState ( _
    throwIfNotCreated As Boolean _
)
'用途
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
)

參數

  • throwIfNotCreated
    型別: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.

備註

呼叫方法