MeasureGroupCollection.GetByName Method (String)
Applies To: SQL Server 2016 Preview
Gets the MeasureGroup that has the specified name from the collection.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)
Syntax
public MeasureGroup GetByName(
string name
)
public:
MeasureGroup^ GetByName(
String^ name
)
member GetByName :
name:string -> MeasureGroup
Public Function GetByName (
name As String
) As MeasureGroup
Parameters
name
Type: System.StringThe name of the MeasureGroup to return.
Return Value
Type: Microsoft.AnalysisServices.MeasureGroup
The MeasureGroup if it exists in the collection.
Exceptions
Exception | Condition |
---|---|
ItemNotFoundException | name does not exist in the collection. |
See Also
MeasureGroupCollection Class
Microsoft.AnalysisServices Namespace
Return to top