DbConnection.GetSchema Method (String)
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Returns schema information for the data source of this DbConnection using the specified string for the schema name.
Assembly: System.Data (in System.Data.dll)
Parameters
- collectionName
-
Type:
System.String
Specifies the name of the schema to return.
Exception | Condition |
---|---|
ArgumentException | collectionName is specified as null. |
If the connection is associated with a transaction, executing GetSchema calls may cause some providers to throw an exception.
.NET Framework
Available since 2.0
Available since 2.0
Show: