Back to Devexpress

EmptyResourceId.Id Property

corelibraries-devexpress-dot-xtrascheduler-dot-emptyresourceid.md

latest2.6 KB
Original Source

EmptyResourceId.Id Property

Gets the ID for the empty resource.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public static EmptyResourceId Id { get; }
vb
Public Shared ReadOnly Property Id As EmptyResourceId

Property Value

TypeDescription
EmptyResourceId

An EmptyResourceId object that is the empty resource identifier.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Id property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-web-forms-scheduler-custom-adaptive-form-using-templates/CS/WebApplication1/DevExpress/ASPxSchedulerForms/AppointmentForm.ascx.cs#L229

csharp
if(!Object.Equals(apt.ResourceId, EmptyResourceId.Id))
    edtResource.Value = apt.ResourceId.ToString();

asp-net-web-forms-scheduler-custom-adaptive-form-using-templates/VB/WebApplication1/DevExpress/ASPxSchedulerForms/AppointmentForm.ascx.vb#L237

vb
If (Not Object.Equals(apt.ResourceId, EmptyResourceId.Id)) Then
    edtResource.Value = apt.ResourceId.ToString()

See Also

EmptyResourceId Class

EmptyResourceId Members

DevExpress.XtraScheduler Namespace