SqlSmoObject.IAlienObject.SetObjectState Method

Sets the object state to the specified SfcObjectState value.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Private Sub SetObjectState ( _
    state As SfcObjectState _
) Implements IAlienObject.SetObjectState
'Usage
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 supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

Implements

IAlienObject.SetObjectState(SfcObjectState)

See Also

Reference

SqlSmoObject Class

Microsoft.SqlServer.Management.Smo Namespace