Dela via


DatabasePermissionCollection.Add Method (DatabasePermission)

Adds a DatabasePermission to the end of the collection.

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

Syntax

'Declaration
Public Function Add ( _
    item As DatabasePermission _
) As Integer
'Usage
Dim instance As DatabasePermissionCollection
Dim item As DatabasePermission
Dim returnValue As Integer

returnValue = instance.Add(item)
public int Add(
    DatabasePermission item
)
public:
int Add(
    DatabasePermission^ item
)
member Add : 
        item:DatabasePermission -> int 
public function Add(
    item : DatabasePermission
) : int

Parameters

Return Value

Type: System.Int32
The zero-based index at which the DatabasePermission has been added.