Share via


MeasureGroupCollection.FindByName Method

Gets the MeasureGroup that has 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 MeasureGroup
'Usage
Dim instance As MeasureGroupCollection
Dim name As String
Dim returnValue As MeasureGroup

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

Parameters

Return Value

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