CubeDef::GetSchemaObject Method (SchemaObjectType, String^)

 

Updated: March 10, 2016

Returns an object associated with the CubeDef from a specified schema rowset.

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

public:
Object^ GetSchemaObject(
	SchemaObjectType schemaObjectType,
	String^ uniqueName
)

Parameters

schemaObjectType
Type: Microsoft.AnalysisServices.AdomdClient::SchemaObjectType

The SchemaObjectType enumeration value that represents the type of object to find.

uniqueName
Type: System::String^

The unique name of the object to find.

Return Value

Type: System::Object^

An Object that contains an object associated with the CubeDef.

This method can be used to retrieve Dimension, Hierarchy, Level, Member, Measure, NamedSet, and other objects that are associated with the CubeDef without navigating the collections associated with these objects.

If the uniqueName parameter is set to an empty string, or if the specified object cannot be found, an exception is raised.

Return to top
Show: