Share via


SPContentTypeReadOnlyException Class

Represents an exception in Windows SharePoint Services.

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> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SPContentTypeReadOnlyException _
    Inherits SPException

Dim instance As SPContentTypeReadOnlyException
[SerializableAttribute]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPContentTypeReadOnlyException : SPException

Remarks

The SPContentTypeReadOnlyException class is used to indicate an attempt to modify an SPContentType object that is read-only (that is, the value of the object’s ReadOnly property is 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.

See Also

Reference

SPContentTypeReadOnlyException Members

Microsoft.SharePoint Namespace

ReadOnly

SPContentTypeSealedException

SPException

Other Resources

Content Type Change Control