Skip to main content

Resource Members

A resources persisted in a data store.

#Constructors

Name Description
Resource() Initializes a new instance of the Resource class with default settings.
Resource(Object, String) Initializes a new instance of the Resource class with the specified caption and ID.
Resource(Object, String, Object) Initializes a new instance of the Resource class with the specified caption and ID.

#Properties
Show Inherited Hide Inherited

Name Description
Caption Gets or sets the resource's caption.
Color Gets or sets the color associated with the resource.
CustomFields Gets the collection of custom fields bound to the persistent object. Inherited from PersistentObject.
DeferChangingToEndUpdate protected This member supports the internal infrastructure and is not intended to be used directly from your code. Inherited from PersistentObject.
Empty static Returns an empty resource.
Id Gets the resource's unique identifier.
Image Gets or sets the resource's image.
IsUpdateLocked Gets whether the persistent object is locked while it is being updated. Inherited from PersistentObject.
ParentId Gets or sets the Id of the parent resource if resources form a tree-like hierarchy.
RowHandle protected Gets or sets a value that identifies the data row bound to the persistent object. Inherited from PersistentObject.
Visible Gets or sets whether the resource is visible.

#Methods
Show Inherited Hide Inherited

Name Description
BeginUpdate() Locks the object until the EndUpdate or CancelUpdate method is called. Inherited from PersistentObject.
CancelUpdate() Unlocks the PersistentObject object after it has been locked by the BeginUpdate method, without causing an immediate visual update. Inherited from PersistentObject.
CanDelete() protected Raises the PersistentObjectStorage<T>.ObjectDeleting event to determine whether the object can be deleted. Inherited from PersistentObject.
Delete() Attempts to delete the persistent object from the collection to which it belongs. Inherited from PersistentObject.
DeleteCore() protected Deletes the persistent object from its storage. Inherited from PersistentObject.
Dispose() Disposes of the PersistentObject object. Inherited from PersistentObject.
EndUpdate() Unlocks the PersistentObject object after a call to the BeginUpdate method and causes an immediate visual update. Inherited from PersistentObject.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetRow(SchedulerStorageBase) Provides access to the data record for the current resource.
GetType() Gets the Type of the current instance. Inherited from Object.
GetValue(SchedulerStorageBase, String) Obtains the value of the specific field in the current resource data record supplied by the specified storage object.
MatchIds(Resource, Resource) static Checks whether the specified resources are identical (or if either of them is an empty resource, see the Resource.Empty property).
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
OnContentChanged() protected The method is called upon modification of the persistent object. Inherited from PersistentObject.
OnContentChanging(String, Object, Object) protected Called before a persistent object is modified. Inherited from PersistentObject.
RaiseDeleting() protected This member supports the internal infrastructure and is not intended to be used directly from your code. Inherited from PersistentObject.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
SetValue(SchedulerStorageBase, String, Object) Performs a transaction to change the value of the specific field in the current resource data record supplied by the specified storage object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also