AudienceCollection.Remove method (String)

Removes the audience with the specified name from the collection.

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

Syntax

'Declaration
Public Sub Remove ( _
    AudienceName As String _
)
'Usage
Dim instance As AudienceCollection
Dim AudienceName As String

instance.Remove(AudienceName)
public void Remove(
    string AudienceName
)

Parameters

Remarks

The Remove method fails if the user is not a member of the Administrator site group for the SharePoint site.

See also

Reference

AudienceCollection class

AudienceCollection members

Remove overload

Microsoft.Office.Server.Audience namespace