LevelCollection.GetByName Method (String)

 

Applies To: SQL Server 2016 Preview

Gets the Level, with the specified name, from the collection.

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

Syntax

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

Parameters

Return Value

Type: Microsoft.AnalysisServices.Level

The Level with the name specified in name.

Exceptions

Exception Condition
ItemNotFoundException

name is not contained by the collection.

See Also

LevelCollection Class
Microsoft.AnalysisServices Namespace

Return to top