DataSourcePermissionCollection.Move Method (String, Int32)

 

Updated: May 24, 2016

Moves a DataSourcePermission, with the specified identifier, to the specified index in the collection.

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

public DataSourcePermission Move(
	string id,
	int toIndex
)

Parameters

id
Type: System.String

The identifier of the DataSourcePermission to be moved.

toIndex
Type: System.Int32

The zero-based index to which to move the DataSourcePermission specified by id.

Exception Condition
ArgumentOutOfRangeException

fromIndex is less than zero.

-or-

fromIndex is equal to or greater than Count.

-or-

id is not contained by the collection.

Return to top
Show: