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
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.