Freigeben über


SPPolicyRoleCollection.Add-Methode (String, String)

Der Auflistung, die basierend auf den angegebenen Richtlinie Rollenname und die Beschreibung hinzugefügt eine richtlinienrolle.

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

Syntax

'Declaration
Public Function Add ( _
    name As String, _
    description As String _
) As SPPolicyRole
'Usage
Dim instance As SPPolicyRoleCollection
Dim name As String
Dim description As String
Dim returnValue As SPPolicyRole

returnValue = instance.Add(name, description)
public SPPolicyRole Add(
    string name,
    string description
)

Parameter

  • name
    Typ: System.String

    Eine Zeichenfolge, die den Namen der richtlinienrolle enthält.

  • description
    Typ: System.String

    Eine Zeichenfolge, die eine Beschreibung für die richtlinienrolle enthält.

Rückgabewert

Typ: Microsoft.SharePoint.Administration.SPPolicyRole
Ein SPPolicyRole -Objekt, das die neue richtlinienrolle darstellt.

Siehe auch

Referenz

SPPolicyRoleCollection Klasse

SPPolicyRoleCollection-Member

Add-Überladung

Microsoft.SharePoint.Administration-Namespace