XPDictionary.CollectClassInfos(Boolean, Assembly[]) Method
Obtains the metadata information for all the persistent objects that are defined in the specified assemblies.
Namespace: DevExpress.Xpo.Metadata
Assembly: DevExpress.Xpo.v25.1.dll
NuGet Package: DevExpress.Xpo
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| addNonPersistent | Boolean | true to add metadata information for nonpersistent objects; otherwise, false. |
| assemblies | Assembly[] | An array of assemblies which contain the persistent objects whose metadata information is collected. |
Returns
| Type | Description |
|---|---|
| XPClassInfo[] | An array of XPClassInfo for the persistent objects that are defined in the specified assemblies. |
Remarks
The CollectClassInfos method enumerates all the types available in the specified assemblies. Some types may reference other assemblies. If CLR cannot load a referenced assembly, it throws the FileNotFoundException, FileLoadException, or BadImageFormatException. The CollectClassInfos method handles all exceptions and skips the problematic assembly without adding corresponding persistent classes to the dictionary.