xpo-devexpress-dot-xpo-dot-metadata-dot-xpdictionary-dot-queryclassinfo-x28-system-dot-type-x29.md
When implemented by a class, returns the persistent class metadata information for the specified class type.
Namespace : DevExpress.Xpo.Metadata
Assembly : DevExpress.Xpo.v25.2.dll
NuGet Package : DevExpress.Xpo
public abstract XPClassInfo QueryClassInfo(
Type classType
)
Public MustOverride Function QueryClassInfo(
classType As Type
) As XPClassInfo
| Name | Type | Description |
|---|---|---|
| classType | Type |
The class type.
|
| Type | Description |
|---|---|
| XPClassInfo |
The XPClassInfo object for the specified class type or null reference ( Nothing in Visual Basic) when the metadata information for the corresponding class cannot be obtained.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the QueryClassInfo(Type) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
DBTable table = tables[0];
XPClassInfo info = XpoDefault.Dictionary.CreateClass(XpoDefault.Dictionary.QueryClassInfo(baseType), table.Name);
string key = table.PrimaryKey.Columns[0];
if (table.PrimaryKey.Length != 1) throw new NotSupportedException();
baseClassCore = dictionary.QueryClassInfo(typeof(XPDataTableObject));
tableNameCore = table.TableName;
Dim table As DBTable = tables(0)
Dim info As XPClassInfo = XpoDefault.Dictionary.CreateClass(XpoDefault.Dictionary.QueryClassInfo(baseType), table.Name)
Dim key As String = table.PrimaryKey.Columns(0)
End If
baseClassCore = dictionary.QueryClassInfo(GetType(XPDataTableObject))
tableNameCore = table.TableName
See Also