DimensionCollection.GetByName Method (String)

 

Applies To: SQL Server 2016 Preview

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

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

Syntax

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

Parameters

Return Value

Type: Microsoft.AnalysisServices.Dimension

The Dimension if contained in the collection.

Exceptions

Exception Condition
ItemNotFoundException

name is not contained by the collection.

See Also

DimensionCollection Class
Microsoft.AnalysisServices Namespace

Return to top