A newer version of this page is available. Switch to the current version.

ResourceDataStorage.CreateResource(Object, String) Method

Creates a new resource with the specified ID and caption.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.1.dll


public Resource CreateResource(
    object id,
    string caption
Public Function CreateResource(
    id As Object,
    caption As String
) As Resource


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).


Type Description

A Resource object.


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