Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
AudienceName
Type: System.StringThe name for an Audience.
Remarks
The Remove method fails if the user is not a member of the Administrator site group for the SharePoint site.