InvalidMaskException Class

The InvalidMaskException class represents an exception that is thrown when the rights you set are not a valid combination of PortalRight values.

System.Object

   System.Exception

      Microsoft.SharePoint.Portal.Security.InvalidMaskExceptionException

Public Constructors

The following table shows the constructors of the InvalidMaskException class and a brief description of each.

Name Description
InvalidMaskException Initializes a new instance of the InvalidMaskException class.

Public Properties

The following table shows the properties of the InvalidMaskException class, the data type of each property, and a brief description of each.

Name Data type Description
rights Microsoft.SharePoint.Portal.Security.PortalRight One or a combination of PortalRight constants.

Example

The following example may throw an InvalidMaskException if you do not have the specified right (Create Category) in the News area.

Thread Safety

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

Requirements

Namespace: Microsoft.SharePoint.Portal.Security

Platforms: Microsoft Windows Server 2003

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

Security: Code Access Security