SecurityManager.AddRole Method
NOTE: This API is now obsolete.
Obsolete.
Namespace: Microsoft.SharePoint.Portal.Security
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
<ObsoleteAttribute("This class is obsolete.")> _
Public Shared Function AddRole ( _
ctx As PortalContext, _
Title As String, _
Description As String, _
rights As PortalRight _
) As Role
'Usage
Dim ctx As PortalContext
Dim Title As String
Dim Description As String
Dim rights As PortalRight
Dim returnValue As Role
returnValue = SecurityManager.AddRole(ctx, Title, _
Description, rights)
[ObsoleteAttribute("This class is obsolete.")]
public static Role AddRole(
PortalContext ctx,
string Title,
string Description,
PortalRight rights
)
Parameters
- Title
Type: System.String
- Description
Type: System.String
- rights
Type: Microsoft.SharePoint.Portal.Security.PortalRight
Return Value
Type: Microsoft.SharePoint.Portal.Security.Role