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
- AudienceNameOrg
Type: System.String
Audience name.
- AudienceDescriptionOrg
Type: System.String
Audience description.
- OwnerAccountNameOrg
Type: System.String
..
- GroupOperation
Type: Microsoft.Office.Server.Audience.AudienceGroupOperation
Member of the AudienceGroupOperation enumeration that indicates the allowable group operation for this audience.
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.