expressappframework-devexpress-dot-expressapp-dot-xpo-dot-xpotypesinfohelper.md
Returns an object providing access to the XPDictionary.
Namespace : DevExpress.ExpressApp.Xpo
Assembly : DevExpress.ExpressApp.Xpo.v25.2.dll
NuGet Package : DevExpress.ExpressApp.Xpo
public static XpoTypeInfoSource GetXpoTypeInfoSource()
Public Shared Function GetXpoTypeInfoSource As XpoTypeInfoSource
| Type | Description |
|---|---|
| DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource |
An XpoTypeInfoSource object providing access to the XPDictionary.
|
If the XpoTypeInfoSource object is not yet initialized, the GetXpoTypeInfoSource method forces its initialization by calling the XpoTypesInfoHelper.ForceInitialize method internally.
Since the GetXpoTypeInfoSource method is static, you can call in from any appropriate context.
using DevExpress.ExpressApp.Xpo;
using DevExpress.ExpressApp.DC.Xpo;
// ...
XpoTypeInfoSource xpoTypeInfoSource = XpoTypesInfoHelper.GetXpoTypeInfoSource();
You can access the XPDictionary object as follows:
using DevExpress.Xpo.Metadata;
using DevExpress.ExpressApp.Xpo;
// ...
XPDictionary xpDictionary = XpoTypesInfoHelper.GetXpoTypeInfoSource().XPDictionary;
More examples on how to use the GetXpoTypeInfoSource method are provided in the following topics:
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetXpoTypeInfoSource() 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.
public IEnumerable<IObjectSpaceProvider> CreateObjectSpaceProviders() {
return new IObjectSpaceProvider[] { new XPObjectSpaceProvider(dataStoreProvider, typesInfo, XpoTypesInfoHelper.GetXpoTypeInfoSource()) };
}
See Also