Export (0) Print
Expand All

DataSourcePermissionCollection.Insert Method (Int32, String, String, String)

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

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

public DataSourcePermission Insert(
	int index,
	string roleId,
	string name,
	string id
)

Parameters

index
Type: Int32
The zero-based index at which the new DataSourcePermission will be inserted.
roleId
Type: String
The role identifier of the DataSourcePermission to be inserted.
name
Type: String
The name of the DataSourcePermission to be inserted.
id
Type: String
The identifier of the DataSourcePermission to be inserted.

Return Value

Type: Microsoft.AnalysisServices.DataSourcePermission
A new DataSourcePermission, with the specified role identifier, name, and identifier.

ExceptionCondition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than Count.

Community Additions

ADD
Show:
© 2014 Microsoft