AudienceCollection.Remove Method (String)
Removes the audience with the specified name from the collection.
Namespace: Microsoft.Office.Server.Audience
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.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.String
Audience name.
Remarks
The Remove method fails if the user is not a member of the Administrator site group for the SharePoint site.