Role Class
The Role class represents a site group in Microsoft Office SharePoint Portal Server 2003.
System.Object
Microsoft.SharePoint.Portal.Security.Role
Public Properties
The following table shows the properties of the Role class, the data type of each property, and a brief description of each.
Name | Data type | Description |
---|---|---|
Description | String | Gets the description for the site group. |
ID | Int32 | Gets the member ID for the site group. |
Name | String | Gets the name for the site group. |
Type | Microsoft.SharePoint.SPRoleType | Gets the type of the site group. |
Xml | String | Gets the site group in XML format. |
Example
The following example shows how you can use the Name property of the Role class to display the name of the role in the PermissionCollection object for a portal site on the console.
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