Site.ReadOnly 属性

Gets or sets a Boolean value that specifies whether the site collection is read-only, locked, and unavailable for write access.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public ReadOnly Property ReadOnly As Boolean
    Get
用法
Dim instance As Site
Dim value As Boolean

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

属性值

类型:System.Boolean
true if the site collection is read-only, locked, and unavailable for write access; otherwise, false.

备注

Setting ReadOnly to true or false also sets WriteLocked to the same value.

ReadOnly returns true whenever the IsReadOnly property of the parent SPDatabase object is true.

另请参阅

引用

Site 类

Site 成员

Microsoft.SharePoint.Client 命名空间