共用方式為


SPSiteAdministration.ReadLocked property

取得或設定一個值,指出是否封鎖的讀取權限的網站。

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

Syntax

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

value = instance.ReadLocked

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

Property value

Type: System.Boolean
true如果封鎖網站 ;否則,請false。

請參閱

參照

SPSiteAdministration class

SPSiteAdministration members

Microsoft.SharePoint.Administration namespace