Share via


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

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