Udostępnij przez


Metoda RoleCollection.Add (String, String)

Tworzy i dodaje Role, z określonej nazwy i identyfikatora do końca kolekcja.

Przestrzeń nazw:  Microsoft.AnalysisServices
Zestaw:  Microsoft.AnalysisServices (w Microsoft.AnalysisServices.dll)

Składnia

'Deklaracja
Public Function Add ( _
    name As String, _
    id As String _
) As Role
'Użycie
Dim instance As RoleCollection
Dim name As String
Dim id As String
Dim returnValue As Role

returnValue = instance.Add(name, id)
public Role Add(
    string name,
    string id
)
public:
Role^ Add(
    String^ name, 
    String^ id
)
member Add : 
        name:string * 
        id:string -> Role 
public function Add(
    name : String, 
    id : String
) : Role

Parametry

Wartość zwracana

Typ: Microsoft.AnalysisServices.Role
Indeks od zera, jaką Role została dodana.