RoleCollection.GetByName Method (String)

 

Applies To: SQL Server 2016 Preview

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

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

Syntax

public Role GetByName(
    string name
)
public:
Role^ GetByName(
    String^ name
)
member GetByName : 
        name:string -> Role
Public Function GetByName (
    name As String
) As Role

Parameters

Return Value

Type: Microsoft.AnalysisServices.Role

The Role if it exists in the collection.

Exceptions

Exception Condition
ItemNotFoundException

name is not in the collection.

See Also

RoleCollection Class
Microsoft.AnalysisServices Namespace

Return to top