Insert Method (Int32, String, String, String)

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

 

Applies To: SQL Server (starting with 2016)

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: System.Int32

The zero-based index at which the new DataSourcePermission will be inserted.

roleId
Type: System.String

The role identifier of the DataSourcePermission to be inserted.

name
Type: System.String

The name of the DataSourcePermission to be inserted.

id
Type: System.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.

Exception Condition
ArgumentOutOfRangeException

index is less than zero.-or-index is equal to or greater than Count.

Return to top
Show:
© 2016 Microsoft