다음을 통해 공유


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

Validates the input parameters and 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 ( _
    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

    A string that contains the Audience name.

  • AudienceDescriptionOrg
    Type: System.String

    A string that contains the Audience description.

  • OwnerAccountNameOrg
    Type: System.String

    A string that contains the Audience account name of the Audience owner.

Return Value

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

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