Share via


AudienceCollection.Create Method (String, String)

Creates an audience with the specified name and description.

Namespace:  Microsoft.Office.Server.Audience
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Function Create ( _
    AudienceName As String, _
    AdienceDescription As String _
) As Audience
'Usage
Dim instance As AudienceCollection
Dim AudienceName As String
Dim AdienceDescription As String
Dim returnValue As Audience

returnValue = instance.Create(AudienceName, _
    AdienceDescription)
public Audience Create(
    string AudienceName,
    string AdienceDescription
)

Parameters

Return Value

Type: Microsoft.Office.Server.Audience.Audience
An instance of Audience with the specified name and description.

Remarks

The Create method creates the audience with a group operation of AUDIENCE_NOGROUP_OPERATION. This operation fails if the current user is not a member of the Administrator site group.

See Also

Reference

AudienceCollection Class

AudienceCollection Members

Create Overload

Microsoft.Office.Server.Audience Namespace