Share via


MeasureCollection.FindByName Method

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

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

Syntax

'Declaration
Public Function FindByName ( _
    name As String _
) As Measure
'Usage
Dim instance As MeasureCollection
Dim name As String
Dim returnValue As Measure

returnValue = instance.FindByName(name)
public Measure FindByName(
    string name
)
public:
Measure^ FindByName(
    String^ name
)
member FindByName : 
        name:string -> Measure 
public function FindByName(
    name : String
) : Measure

Parameters

Return Value

Type: Microsoft.AnalysisServices.Measure
The Measure if contained in the collection; otherwise, a null reference (Nothing in Visual Basic.)