Skip to main content
.NET 8.0+

IObjectLayerAsync.CreateObjectTypeAsync(XPObjectType, CancellationToken) Method

When implemented by a class, asynchronously creates an XPObjectType record.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

Task CreateObjectTypeAsync(
    XPObjectType objectType,
    CancellationToken cancellationToken = default(CancellationToken)
)

Parameters

Name Type Description
objectType XPObjectType

An XPObjectType object specifying a valid persistent type.

Optional Parameters

Name Type Default Description
cancellationToken CancellationToken null

A CancellationToken object that delivers a cancellation notice to the running operation.

Returns

Type Description
Task

A Task that creates an XPObjectType record.

See Also