共用方式為


SPSiteAdministration.ReadOnly property

取得或設定 Boolean 值,指定網站是否要以唯讀模式執行。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Property ReadOnly As Boolean
    Get
    Set
'用途
Dim instance As SPSiteAdministration
Dim value As Boolean

value = instance.ReadOnly

instance.ReadOnly = value
public bool ReadOnly { get; set; }

Property value

Type: System.Boolean
true如果站台執行以唯讀模式 ;否則,請false。

請參閱

參照

SPSiteAdministration class

SPSiteAdministration members

Microsoft.SharePoint.Administration namespace