RoleCollection.Remove RoleCollection.Remove RoleCollection.Remove Method

Definition

Removes a Role from the collection.

Overloads

Remove(Role) Remove(Role) Remove(Role)

Removes the specified Role from the collection.

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

Removes the Role that has the specified identifier from the collection.

Remove(Role, Boolean) Remove(Role, Boolean) Remove(Role, Boolean)

Removes the specified Role from the collection.

Remove(String, Boolean) Remove(String, Boolean) Remove(String, Boolean)

Removes the Role that has the specified identifier from the collection.

Remove(Role) Remove(Role) Remove(Role)

Removes the specified Role from the collection.

public:
 void Remove(Microsoft::AnalysisServices::Role ^ item);
public void Remove (Microsoft.AnalysisServices.Role item);
Public Sub Remove (item As Role)
Parameters
item
Role Role Role

The Role to remove.

Exceptions

item does not exist in the collection.

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

Removes the Role that has the specified identifier from the collection.

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

The identifier of the Role to remove.

Exceptions

id does not exist in the collection.

Remove(Role, Boolean) Remove(Role, Boolean) Remove(Role, Boolean)

Removes the specified Role from the collection.

public:
 void Remove(Microsoft::AnalysisServices::Role ^ item, bool cleanUp);
public void Remove (Microsoft.AnalysisServices.Role item, bool cleanUp);
Public Sub Remove (item As Role, cleanUp As Boolean)
Parameters
item
Role Role Role

The Role to remove.

cleanUp
Boolean Boolean Boolean

true to delete referencing objects; otherwise, false.

Remove(String, Boolean) Remove(String, Boolean) Remove(String, Boolean)

Removes the Role that has the specified identifier from the collection.

public:
 void Remove(System::String ^ id, bool cleanUp);
public void Remove (string id, bool cleanUp);
Public Sub Remove (id As String, cleanUp As Boolean)
Parameters
id
String String String

The identifier of the Role to remove.

cleanUp
Boolean Boolean Boolean

true to delete referencing objects; otherwise, false.

Applies to