Skip to main content

ResourceDataStorage.CreateResource(Object, String) Method

Creates a new resource with the specified ID and caption.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

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