Compartilhar via


SPPersistedObject.Status Property

Gets or sets the status of the object that the class represents.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)> _
Public Property Status As SPObjectStatus
    Get
    Set
'Usage
Dim instance As SPPersistedObject
Dim value As SPObjectStatus

value = instance.Status

instance.Status = value
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.UnsupportedSPType)]
public SPObjectStatus Status { get; set; }

Property Value

Type: Microsoft.SharePoint.Administration.SPObjectStatus
An SPObjectStatus value that specifies the object status. In the context of an SPContentDatabase object, the Online and Disabled values correspond respectively to the Ready and Offline values that can be selected through the Database status box on the Manage Content Database Settings page in SharePoint Central Administration.

See Also

Reference

SPPersistedObject Class

SPPersistedObject Members

Microsoft.SharePoint.Administration Namespace