Back to Devexpress

XPDictionary.AddClassInfo(XPClassInfo) Method

xpo-devexpress-dot-xpo-dot-metadata-dot-xpdictionary-dot-addclassinfo-x28-devexpress-dot-xpo-dot-metadata-dot-xpclassinfo-x29.md

latest3.2 KB
Original Source

XPDictionary.AddClassInfo(XPClassInfo) Method

Adds persistent class metadata information to the current metadata provider.

Namespace : DevExpress.Xpo.Metadata

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public void AddClassInfo(
    XPClassInfo info
)
vb
Public Sub AddClassInfo(
    info As XPClassInfo
)

Parameters

NameTypeDescription
infoXPClassInfo

Persistent class metadata information of the objects to add to the XPDictionary.Classes collection of the objects that are supplied by the current metadata provider.

|

Remarks

An exception is thrown when the object whose metadata information being added is already supplied by another metadata provider.

The XPDictionary.ClassInfoChanged event is raised when the metadata information has been successfully added to the current metadata provider.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddClassInfo(XPClassInfo) 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-create-an-xpclassinfo-descendant-to-dynamically-build-a-persistent-class-structure-e1729/CS/DynamicDataTable/DynamicDataTableClassInfo.cs#L24

csharp
}
    dictionary.AddClassInfo(this);
}

XPO_how-to-create-an-xpclassinfo-descendant-to-dynamically-build-a-persistent-class-structure-e1729/VB/DynamicDataTable/DynamicDataTableClassInfo.vb#L29

vb
Next column
    dictionary.AddClassInfo(Me)
End Sub

See Also

Classes

XPDictionary Class

XPDictionary Members

DevExpress.Xpo.Metadata Namespace