Add Method (String, String)

DataSourcePermissionCollection.Add Method (String, String)


Applies To: SQL Server (starting with 2016)

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

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

public DataSourcePermission Add(
	string roleId,
	string name


Type: System.String

The role identifier of the DataSourcePermission to be added..

Type: System.String

The name of the DataSourcePermission to be added

Return Value

Type: Microsoft.AnalysisServices.DataSourcePermission

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

Return to top
© 2016 Microsoft