xpo-devexpress-dot-xpo-dot-metadata-dot-xpdictionary-1ed89303.md
When implemented by a class, gets a collection of the XPClassInfo objects that are supplied by the current metadata provider.
Namespace : DevExpress.Xpo.Metadata
Assembly : DevExpress.Xpo.v25.2.dll
NuGet Package : DevExpress.Xpo
public abstract ICollection Classes { get; }
Public MustOverride ReadOnly Property Classes As ICollection
| Type | Description |
|---|---|
| ICollection |
A collection of the XPClassInfo objects.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Classes property.
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.
ReflectionDictionary tempDictionary = new ReflectionDictionary();
foreach(XPClassInfo ci in dictionary.Classes) {
if(!IsTempDatabaseTable(ci.TableName)) {
XPO_how-to-get-a-list-of-a-persistent-objects-properties-e725/CS/Form1.cs#L96
private void Form1_Load(object sender, System.EventArgs e) {
foreach(XPClassInfo info in XpoDefault.Session.Dictionary.Classes) {
if(info.IsPersistent && info.IsVisibleInDesignTime)
Dim tempDictionary As New ReflectionDictionary()
For Each ci As XPClassInfo In dictionary.Classes
If Not IsTempDatabaseTable(ci.TableName) Then
XPO_how-to-get-a-list-of-a-persistent-objects-properties-e725/VB/Form1.vb#L96
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
For Each info As XPClassInfo In XpoDefault.Session.Dictionary.Classes
If info.IsPersistent AndAlso info.IsVisibleInDesignTime Then comboBox1.Items.Add(info)
See Also