SqlSmoObject.IAlienObject.SetObjectState 方法
Sets the object state to the specified SfcObjectState value.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Private Sub SetObjectState ( _
state As SfcObjectState _
) Implements IAlienObject.SetObjectState
'用途
Dim instance As SqlSmoObject
Dim state As SfcObjectState
CType(instance, IAlienObject).SetObjectState(state)
void IAlienObject.SetObjectState(
SfcObjectState state
)
private:
virtual void SetObjectState(
SfcObjectState state
) sealed = IAlienObject::SetObjectState
private abstract SetObjectState :
state:SfcObjectState -> unit
private override SetObjectState :
state:SfcObjectState -> unit
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。
參數
- state
型別:Microsoft.SqlServer.Management.Sdk.Sfc.SfcObjectState
An SfcObjectState value that specifies the state of the object.
實作
IAlienObject.SetObjectState(SfcObjectState)