CheckObjectState 方法 (Boolean)
驗證受參考物件的狀態,並以選項指定如果還未建立該物件則擲回例外狀況。
命名空間: 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
Boolean 值,指定如果物件尚未建立,是否擲回例外狀況。
如果為 True,則表示如果物件尚未建立,方法會擲回例外狀況。否則為 False。