RoleCollection.Insert RoleCollection.Insert RoleCollection.Insert Method

Definition

Inserts a Role into the collection.

Overloads

Insert(Int32, String, String) Insert(Int32, String, String) Insert(Int32, String, String)

Creates and inserts a Role, with the specified name and identifier, into the collection at the specified index.

Insert(Int32, String) Insert(Int32, String) Insert(Int32, String)

Creates and inserts a Role, with the specified identifier, into the collection at the specified index.

Insert(Int32, Role) Insert(Int32, Role) Insert(Int32, Role)

Inserts a Role into the collection at the specified index.

Insert(Int32) Insert(Int32) Insert(Int32)

Creates and inserts a Role into the collection at the specified index.

Insert(Int32, String, String) Insert(Int32, String, String) Insert(Int32, String, String)

Creates and inserts a Role, with the specified name and identifier, into the collection at the specified index.

public:
 Microsoft::AnalysisServices::Role ^ Insert(int index, System::String ^ name, System::String ^ id);
public Microsoft.AnalysisServices.Role Insert (int index, string name, string id);
Public Function Insert (index As Integer, name As String, id As String) As Role
Parameters
index
Int32 Int32 Int32

The zero-based index at which to insert the new Role.

name
String String String

The name of the Role to insert.

id
String String String

The identifier of the Role to insert.

Returns

A new, empty Role.

Exceptions

Insert(Int32, String) Insert(Int32, String) Insert(Int32, String)

Creates and inserts a Role, with the specified identifier, into the collection at the specified index.

public:
 Microsoft::AnalysisServices::Role ^ Insert(int index, System::String ^ name);
public Microsoft.AnalysisServices.Role Insert (int index, string name);
Public Function Insert (index As Integer, name As String) As Role
Parameters
index
Int32 Int32 Int32

The zero-based index at which to insert the new Role.

name
String String String

The name of the Role to insert.

Returns

A new, empty Role.

Exceptions

Insert(Int32, Role) Insert(Int32, Role) Insert(Int32, Role)

Inserts a Role into the collection at the specified index.

public:
 void Insert(int index, Microsoft::AnalysisServices::Role ^ item);
public void Insert (int index, Microsoft.AnalysisServices.Role item);
Public Sub Insert (index As Integer, item As Role)
Parameters
index
Int32 Int32 Int32

The zero-based index at which to insert the new Role.

item
Role Role Role

The Role to insert.

Exceptions

Insert(Int32) Insert(Int32) Insert(Int32)

Creates and inserts a Role into the collection at the specified index.

public:
 Microsoft::AnalysisServices::Role ^ Insert(int index);
public Microsoft.AnalysisServices.Role Insert (int index);
Public Function Insert (index As Integer) As Role
Parameters
index
Int32 Int32 Int32

The zero-based index at which to insert the new Role.

Returns

A new, empty Role.

Exceptions

Applies to