We recommend using Visual Studio 2017

MeasureCollection.Find Method

Returns the specified Measure from the collection.

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

public Measure Find(
	string name


Type: String
The name of the Measure to find.

Return Value

Type: Microsoft.AnalysisServices.AdomdServer.Measure
The Measure with the specified name if found; otherwise, null.

The Find method returns null if the object is not found, while the Item property throws an exception if the object is not found.