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.v18.2.dll

Declaration

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

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