xpo-devexpress-dot-xpo-dot-metadata-dot-xpdictionary-dot-queryclassinfo-x28-system-dot-string-system-dot-string-x29.md
When implemented by a class, returns the persistent class metadata information for the specified assembly name and class name.
Namespace : DevExpress.Xpo.Metadata
Assembly : DevExpress.Xpo.v25.2.dll
NuGet Package : DevExpress.Xpo
public abstract XPClassInfo QueryClassInfo(
string assemblyName,
string className
)
Public MustOverride Function QueryClassInfo(
assemblyName As String,
className As String
) As XPClassInfo
| Name | Type | Description |
|---|---|---|
| assemblyName | String |
The assembly name.
| | className | String |
The full name of the class.
|
| Type | Description |
|---|---|
| XPClassInfo |
The XPClassInfo object for the specified class or null reference ( Nothing in Visual Basic) when the metadata information cannot be obtained.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the QueryClassInfo(String, String) 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.
XPO_how-to-persist-metadata-e269/CS/MetadataObjects.cs#L51
public XPClassInfo CreateClass(XPDictionary dictionary) {
XPClassInfo result = dictionary.QueryClassInfo(AssemblyName, Name);
if(result == null) {
XPO_how-to-persist-metadata-e269/VB/MetadataObjects.vb#L74
Public Function CreateClass(ByVal dictionary As XPDictionary) As XPClassInfo
Dim result As XPClassInfo = dictionary.QueryClassInfo(AssemblyName, Name)
If result Is Nothing Then
See Also