SPContentType.ReadOnly property
取得或設定內容的型別是否為唯讀。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property ReadOnly As Boolean
Get
Set
'用途
Dim instance As SPContentType
Dim value As Boolean
value = instance.ReadOnly
instance.ReadOnly = value
public bool ReadOnly { get; set; }
Property value
Type: System.Boolean
true如果內容類型是唯讀的。否則false。
備註
標記內容類型為唯讀會警告使用者他們應該無法進行變更的內容類型。使用者必須再明確設定的內容類型的 [唯讀] 屬性為false ,若要變更的內容類型。
如需詳細資訊,請參閱Content Type Change Control。
如果您以唯讀方式定義內容類型,當您對其父系內容類型的變更,然後嘗試將這些變更向下傳播透過階層架構可以具有細節。如需詳細資訊,請參閱Updating Child Content Types。
請參閱
參照
Microsoft.SharePoint namespace