AudienceCollection.Create Method (String, String, AudienceGroupOperation)
Creates an instance of the Audience object.
Namespace: Microsoft.Office.Server.Audience
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Function Create ( _
AudienceName As String, _
AdienceDescription As String, _
GroupOperation As AudienceGroupOperation _
) As Audience
'Usage
Dim instance As AudienceCollection
Dim AudienceName As String
Dim AdienceDescription As String
Dim GroupOperation As AudienceGroupOperation
Dim returnValue As Audience
returnValue = instance.Create(AudienceName, _
AdienceDescription, GroupOperation)
public Audience Create(
string AudienceName,
string AdienceDescription,
AudienceGroupOperation GroupOperation
)
Parameters
AudienceName
Type: System.StringA string that contains the Audience name.
- AdienceDescription
Type: System.String
GroupOperation
Type: Microsoft.Office.Server.Audience.AudienceGroupOperationA member of the AudienceGroupOperation enumeration that indicates the allowable group operation for this audience.
Return Value
Type: Microsoft.Office.Server.Audience.Audience
An instance of Audience with the specified name, description, and AudienceGroupOperation.