Skip to main content

IResourceStorageBase.GetResourceById(Object) Method

Gets a resource from the collection by its ID value.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v23.2.Core.dll

NuGet Package: DevExpress.Scheduler.Core

Declaration

Resource GetResourceById(
    object resourceId
)

Parameters

Name Type Description
resourceId Object

A Object which is a unique resource identifier.

Returns

Type Description
Resource

A Resource object whose IPersistentObject.Id is equal to the specified resource ID. If no resource with the specified ID is found, then the empty resource (a resource with ID equal to EmptyResourceId.Id value) will be returned.

See Also