Skip to main content
A newer version of this page is available. .

ResourceDataStorage.CreateResource(Object, String) Method

Creates a new resource with the specified ID and caption.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.2.dll

Declaration

public Resource CreateResource(
    object id,
    string caption
)

Parameters

Name Type Description
id Object

An object, that is a unique resource identifier.

caption String

A string that is displayed as resource’s caption (Resource.Caption).

Returns

Type Description
Resource

A Resource object.

Remarks

Use the CreateResource method to create a new resource. This method also creates all the mapped custom fields, and adds them to the resource’s CustomFieldCollection.

See Also