CubeDef.GetSchemaObject 方法
從指定的結構描述資料列集傳回與 CubeDef 相關聯的物件。
命名空間: Microsoft.AnalysisServices.AdomdServer
組件: msmgdsrv (在 msmgdsrv.dll 中)
語法
'宣告
Public Function GetSchemaObject ( _
schemaObjectType As SchemaObjectType, _
uniqueName As String _
) As Object
'用途
Dim instance As CubeDef
Dim schemaObjectType As SchemaObjectType
Dim uniqueName As String
Dim returnValue As Object
returnValue = instance.GetSchemaObject(schemaObjectType, _
uniqueName)
public Object GetSchemaObject(
SchemaObjectType schemaObjectType,
string uniqueName
)
public:
Object^ GetSchemaObject(
SchemaObjectType schemaObjectType,
String^ uniqueName
)
member GetSchemaObject :
schemaObjectType:SchemaObjectType *
uniqueName:string -> Object
public function GetSchemaObject(
schemaObjectType : SchemaObjectType,
uniqueName : String
) : Object
參數
- schemaObjectType
型別:Microsoft.AnalysisServices.AdomdServer.SchemaObjectType
代表所要尋找物件類型的 SchemaObjectType 列舉值。
- uniqueName
型別:String
要尋找的物件唯一名稱。
傳回值
型別:Object
Object ,其中包含與 CubeDef 關聯的物件。
備註
此方法可用來擷取 Dimension、Hierarchy、Level、Member、Measure、NamedSet 以及與 CubeDef 相關聯的其他物件,而不需要導覽與這些物件相關聯的集合。
如果 uniqueName 參數設為空字串或是找不到指定的物件,則會引發例外狀況。