Metoda AdomdConnection.GetSchemaDataSet (String, AdomdRestrictionCollection)
Zwraca informacje dotyczące schematu źródło danych przy użyciu nazwy schematu do identyfikowania schematu, które pobrać i przy zastosowaniu wszelkich ograniczeń określonych informacji.
Przestrzeń nazw: Microsoft.AnalysisServices.AdomdClient
Zestaw: Microsoft.AnalysisServices.AdomdClient (w Microsoft.AnalysisServices.AdomdClient.dll)
Składnia
'Deklaracja
Public Function GetSchemaDataSet ( _
schemaName As String, _
restrictions As AdomdRestrictionCollection _
) As DataSet
'Użycie
Dim instance As AdomdConnection
Dim schemaName As String
Dim restrictions As AdomdRestrictionCollection
Dim returnValue As DataSet
returnValue = instance.GetSchemaDataSet(schemaName, _
restrictions)
public DataSet GetSchemaDataSet(
string schemaName,
AdomdRestrictionCollection restrictions
)
public:
DataSet^ GetSchemaDataSet(
String^ schemaName,
AdomdRestrictionCollection^ restrictions
)
member GetSchemaDataSet :
schemaName:string *
restrictions:AdomdRestrictionCollection -> DataSet
public function GetSchemaDataSet(
schemaName : String,
restrictions : AdomdRestrictionCollection
) : DataSet
Parametry
- schemaName
Typ: System.String
Nazwa schematu, które mają zostać pobrane.
- restrictions
Typ: Microsoft.AnalysisServices.AdomdClient.AdomdRestrictionCollection
Kolekcja AdomdRestriction obiektów, które określa wartości dla kolumn ograniczeń używane przez tabela schematu.
Wartość zwracana
Typ: System.Data.DataSet
A DataSet , oznaczającą zawartość określonej tabela Schemat OLE DB.
Uwagi
Tabela schematu jest zwracany jako DataSet ma ten sam format jako zestaw wierszy schematu OLE DB, określony przez schemaName parametru.Użyj restrictions parametru do filtrowania wierszy zwracanych w DataSet.(Na przykład, można określić ograniczenia moduł nazwę i wymiar nazw dla schematu wymiary.)
Ostrzeżenie
Jeśli schemat zawiera zagnieżdżonych zestawów wierszy, więcej tabel mogą być zwracane w DataSet.