Share via


SmoObjectBase.State Property

Gets the state of the referenced object.

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

Syntax

'Declaration
Public ReadOnly Property State As SqlSmoState
    Get
'Usage
Dim instance As SmoObjectBase
Dim value As SqlSmoState

value = instance.State
public SqlSmoState State { get; }
public:
property SqlSmoState State {
    SqlSmoState get ();
}
member State : SqlSmoState
function get State () : SqlSmoState

Property Value

Type: Microsoft.SqlServer.Management.Smo.SqlSmoState
A SqlSmoState object value that specifies the state of the referenced object.