共用方式為


SPContentTypeReadOnlyException class

表示嘗試修改唯讀的SPContentType物件時,就會發生的例外狀況。

Inheritance hierarchy

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.SharePoint.SPException
        Microsoft.SharePoint.SPContentTypeReadOnlyException

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

Syntax

'宣告
<SerializableAttribute> _
Public Class SPContentTypeReadOnlyException _
    Inherits SPException
'用途
Dim instance As SPContentTypeReadOnlyException
[SerializableAttribute]
public class SPContentTypeReadOnlyException : SPException

備註

如果SPContentType物件是唯讀的它的ReadOnly屬性的值會是true。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPContentTypeReadOnlyException members

Microsoft.SharePoint namespace