Back to Devexpress

XPDictionary.QueryClassInfo(String, String) Method

xpo-devexpress-dot-xpo-dot-metadata-dot-xpdictionary-dot-queryclassinfo-x28-system-dot-string-system-dot-string-x29.md

latest3.3 KB
Original Source

XPDictionary.QueryClassInfo(String, String) Method

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

Declaration

csharp
public abstract XPClassInfo QueryClassInfo(
    string assemblyName,
    string className
)
vb
Public MustOverride Function QueryClassInfo(
    assemblyName As String,
    className As String
) As XPClassInfo

Parameters

NameTypeDescription
assemblyNameString

The assembly name.

| | className | String |

The full name of the class.

|

Returns

TypeDescription
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

csharp
public XPClassInfo CreateClass(XPDictionary dictionary) {
    XPClassInfo result = dictionary.QueryClassInfo(AssemblyName, Name);
    if(result == null) {

XPO_how-to-persist-metadata-e269/VB/MetadataObjects.vb#L74

vb
Public Function CreateClass(ByVal dictionary As XPDictionary) As XPClassInfo
    Dim result As XPClassInfo = dictionary.QueryClassInfo(AssemblyName, Name)
    If result Is Nothing Then

See Also

QueryClassInfo

XPDictionary.GetClassInfo

Session.GetClassInfo

XPDictionary Class

XPDictionary Members

DevExpress.Xpo.Metadata Namespace