MdxScriptCollection.GetByName Method

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

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

Syntax

C#
public MdxScript GetByName(
    string name
)

Parameters

Return Value

Type: Microsoft.AnalysisServices.MdxScript
The MdxScript if contained in the collection.

Exceptions

Exception Condition
ItemNotFoundException

name is not contained by the collection.

See Also

Reference

MdxScriptCollection Class

Microsoft.AnalysisServices Namespace