Back to Devexpress

ResourceBaseCollection.GetResourceById(Object) Method

corelibraries-devexpress-dot-xtrascheduler-dot-resourcebasecollection-dot-getresourcebyid-x28-system-dot-object-x29.md

latest1.8 KB
Original Source

ResourceBaseCollection.GetResourceById(Object) Method

Gets a resource within the collection by its ID value.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public Resource GetResourceById(
    object resourceId
)
vb
Public Function GetResourceById(
    resourceId As Object
) As Resource

Parameters

NameTypeDescription
resourceIdObject

A Object which is the resource identifier.

|

Returns

TypeDescription
Resource

A Resource object whose PersistentObject.Id property value is equal to the specified. If no resource with the specified ID is found, then the ResourceEmpty value will be returned.

|

See Also

ResourceBaseCollection Class

ResourceBaseCollection Members

DevExpress.XtraScheduler Namespace