AggregationInstanceCollection.GetByName Method
Gets the AggregationInstance, with the specified name, from the collection.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)
Syntax
'Declaration
Public Function GetByName ( _
name As String _
) As AggregationInstance
'Usage
Dim instance As AggregationInstanceCollection
Dim name As String
Dim returnValue As AggregationInstance
returnValue = instance.GetByName(name)
public AggregationInstance GetByName(
string name
)
public:
AggregationInstance^ GetByName(
String^ name
)
member GetByName :
name:string -> AggregationInstance
public function GetByName(
name : String
) : AggregationInstance
Parameters
- name
Type: System.String
The name of the AggregationInstance to be returned.
Return Value
Type: Microsoft.AnalysisServices.AggregationInstance
The AggregationInstance with the name specified in name.
Exceptions
Exception | Condition |
---|---|
ItemNotFoundException | name is not contained by the collection. |