Share via


AudienceCollection.Create Method (String, String, String, AudienceGroupOperation)

Creates an audience with the specified name, description, and group operation.

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

Syntax

'Declaration
Public Function Create ( _
    AudienceNameOrg As String, _
    AudienceDescriptionOrg As String, _
    OwnerAccountNameOrg As String, _
    GroupOperation As AudienceGroupOperation _
) As Audience
'Usage
Dim instance As AudienceCollection
Dim AudienceNameOrg As String
Dim AudienceDescriptionOrg As String
Dim OwnerAccountNameOrg As String
Dim GroupOperation As AudienceGroupOperation
Dim returnValue As Audience

returnValue = instance.Create(AudienceNameOrg, _
    AudienceDescriptionOrg, OwnerAccountNameOrg, _
    GroupOperation)
public Audience Create(
    string AudienceNameOrg,
    string AudienceDescriptionOrg,
    string OwnerAccountNameOrg,
    AudienceGroupOperation GroupOperation
)

Parameters

  • AudienceDescriptionOrg
    Type: System.String
    Audience description.

Return Value

Type: Microsoft.Office.Server.Audience.Audience

Remarks

The Create method 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