Skip to main content

XPDictionary.CollectClassInfos(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.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public XPClassInfo[] CollectClassInfos(
    params Assembly[] assemblies
)

Parameters

Name Type Description
assemblies Assembly[]

An array of assemblies which contain the persistent objects whose metadata information is collected.

Returns

Type Description
XPClassInfo[]

An array of the XPClassInfos for the persistent objects that are defined in the assemblies within the assemblies array.

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CollectClassInfos(Assembly[]) 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.

See Also