Share via


MdxScriptCollection.GetByName(String) Method

Definition

Gets the MdxScript that has the specified name from the collection.

public Microsoft.AnalysisServices.MdxScript GetByName (string name);
member this.GetByName : string -> Microsoft.AnalysisServices.MdxScript
Public Function GetByName (name As String) As MdxScript

Parameters

name
String

The name of the MdxScript to locate.

Returns

The MdxScript with the specified Name.

Exceptions

The collection doesn't contain a MdxScript with the specified name.

Applies to