DatabasePermissionCollection.Add DatabasePermissionCollection.Add DatabasePermissionCollection.Add Method

Definition

Creates and adds a DatabasePermission to the collection.

Overloads

Add(DatabasePermission) Add(DatabasePermission) Add(DatabasePermission)

Adds a DatabasePermission to the end of the collection.

Add(String) Add(String) Add(String)

Creates and adds a DatabasePermission with the specified identifier to the end of the collection.

Add(String, String) Add(String, String) Add(String, String)

Creates and adds a DatabasePermission with the specified name and identifier to the end of the collection.

Add(String, String, String) Add(String, String, String) Add(String, String, String)

Creates and adds a DatabasePermission, with the specified role identifier, name, and identifier, to the end of the collection.

Add(DatabasePermission) Add(DatabasePermission) Add(DatabasePermission)

Adds a DatabasePermission to the end of the collection.

public:
 int Add(Microsoft::AnalysisServices::DatabasePermission ^ item);
public int Add (Microsoft.AnalysisServices.DatabasePermission item);
Public Function Add (item As DatabasePermission) As Integer
Parameters
Returns

The zero-based index at which the DatabasePermission has been added.

Add(String) Add(String) Add(String)

Creates and adds a DatabasePermission with the specified identifier to the end of the collection.

public:
 Microsoft::AnalysisServices::DatabasePermission ^ Add(System::String ^ roleId);
public Microsoft.AnalysisServices.DatabasePermission Add (string roleId);
Public Function Add (roleId As String) As DatabasePermission
Parameters
roleId
String String String

The identifier of the DatabasePermission to be added.

Returns

The zero-based index at which the DatabasePermission has been added.

Add(String, String) Add(String, String) Add(String, String)

Creates and adds a DatabasePermission with the specified name and identifier to the end of the collection.

public:
 Microsoft::AnalysisServices::DatabasePermission ^ Add(System::String ^ roleId, System::String ^ name);
public Microsoft.AnalysisServices.DatabasePermission Add (string roleId, string name);
Public Function Add (roleId As String, name As String) As DatabasePermission
Parameters
roleId
String String String

The name of the DatabasePermission to be added.

name
String String String

The identifier of the DatabasePermission to be added.

Returns

The zero-based index at which the DatabasePermission has been added.

Add(String, String, String) Add(String, String, String) Add(String, String, String)

Creates and adds a DatabasePermission, with the specified role identifier, name, and identifier, to the end of the collection.

public:
 Microsoft::AnalysisServices::DatabasePermission ^ Add(System::String ^ roleId, System::String ^ name, System::String ^ id);
public Microsoft.AnalysisServices.DatabasePermission Add (string roleId, string name, string id);
Public Function Add (roleId As String, name As String, id As String) As DatabasePermission
Parameters
roleId
String String String

The identifier of the role for the DatabasePermission to be added.

name
String String String

The name of the DatabasePermission to be added.

id
String String String

The identifier of the DatabasePermission to be added.

Returns

Applies to