AudienceCollection.Remove AudienceCollection.Remove AudienceCollection.Remove Method

Definition

Overloads

Remove(Guid) Remove(Guid) Remove(Guid)

Removes the Audience object with the specified globally unique identifier (GUID) from the collection.

Remove(String) Remove(String) Remove(String)

Removes the audience with the specified name from the collection.

Remove(Guid) Remove(Guid) Remove(Guid)

Removes the Audience object with the specified globally unique identifier (GUID) from the collection.

public:
 void Remove(Guid AudienceGuid);
public void Remove (Guid AudienceGuid);
Public Sub Remove (AudienceGuid As Guid)
Parameters
AudienceGuid
Guid Guid Guid

The GUID for an audience.

Remarks

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

Remove(String) Remove(String) Remove(String)

Removes the audience with the specified name from the collection.

public:
 void Remove(System::String ^ AudienceName);
public void Remove (string AudienceName);
Public Sub Remove (AudienceName As String)
Parameters
AudienceName
String String String

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

Applies to