Freigeben über


RoleCollection.GetByName(String) Method

Definition

Gets the Role that has the specified name from the collection.

public Microsoft.AnalysisServices.Tabular.Role GetByName (string name);
member this.GetByName : string -> Microsoft.AnalysisServices.Tabular.Role
Public Function GetByName (name As String) As Role

Parameters

name
String

The name of the Role to locate.

Returns

The Role with the specified Name.

Exceptions

The collection doesn't contain a Role with the specified name.

Applies to