Back to Devexpress

XPWeakReference Members

xpo-devexpress-dot-xpo-dot-xpweakreference-dot-underscore-members.md

latest12.5 KB
Original Source

XPWeakReference Members

A persistent weak reference to a persistent object.

Constructors

NameDescription
XPWeakReference()Initializes a new instance of the XPWeakReference class with the default settings.
XPWeakReference(IXPSimpleObject)Initializes a new instance of the XPWeakReference class with the specified targeted object.
XPWeakReference(Session, Object)Initializes a new instance of the XPWeakReference class with the specified session and targeted object.
XPWeakReference(Session)Initializes a new instance of the XPWeakReference class with the specified session.

Fields

NameDescription
AutoSaveOnEndEdit static

Specifies whether changes in a persistent object are automatically committed to a database after you have finished editing the object in a bound control.

To learn more, refer to How to: Control Automatic Saving of Objects when Editing in a Grid and How to: Prevent Changes in a Persistent Object from being Automatically Committed.

Inherited from XPBaseObject. | | DisableSmartCreateAssociationListStrategy static | Controls how the XPCustomMemberInfo.GetValue method creates a collection object when the XPCustomMemberInfo.MemberType property is set to typeof(XPCollection<T>) or typeof(IList<T>). Inherited from PersistentBase. | | Oid | A key of the current weak reference. | | UseUnsafeCreateCollectionStrategy static | Specifies whether the return value type of the XPCustomMemberInfo.GetValue method can be different than the XPCustomMemberInfo.MemberType property value. Inherited from PersistentBase. |

Properties

NameDescription
ClassInfoGets a value that provides access to the metadata information of a class gathered via Reflection. Inherited from PersistentBase.
Fields staticGets an object that contains field identifiers for Simplified Criteria Syntax. Inherited from PersistentBase.
IsAliveGets whether the object referenced by this instance has been garbage collected.
IsDeletedIndicates whether the current persistent object is marked as deleted. Inherited from PersistentBase.
IsLoadingIndicates whether the object is currently being initialized. Inherited from PersistentBase.
LoadingObsolete. Gets whether the object is currently being initialized. Inherited from XPBaseObject.
SessionGets the session used to load and save persistent objects. Inherited from PersistentBase.
TargetGets or sets the object referenced by the current XPWeakReference instance.
TargetKey_Obsolete. This property isn’t used.
TargetType_Obsolete. This property isn’t used.
ThisRefers to the current instance. Inherited from XPBaseObject.

Methods

NameDescription
AddChangedEventHandler(Object, IObjectChange) staticThis member supports the .NET Framework infrastructure and cannot be used directly from your code. Inherited from XPBaseObject.
AddChangedEventHandler(Object, ObjectChangeEventHandler) staticThis member supports the .NET Framework infrastructure and cannot be used directly from your code. Inherited from XPBaseObject.
AfterConstruction()Invoked when the current object is about to be initialized after its creation. Inherited from PersistentBase.
Delete()Deletes the persistent object and its aggregated objects from persistent storage. Inherited from XPBaseObject.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the current object has the same settings as the specified object. Inherited from PersistentBase.
Evaluate(CriteriaOperator)Evaluates the specified expression against the current instance of the persistent object. Inherited from XPBaseObject.
Evaluate(String)Evaluates the specified string expression against the current instance of the persistent object. Inherited from XPBaseObject.
EvaluateAlias(String)Evaluates an expression specified by the PersistentAliasAttribute attribute for the specified property. Inherited from XPBaseObject.
Fit(CriteriaOperator)Checks whether the current instance matches the specified criteria. Inherited from XPBaseObject.
Fit(String)Checks whether the current instance matches the specified criteria. Inherited from XPBaseObject.
GetCustomPropertyStore(Object) staticThis member supports the internal infrastructure and isn’t intended to be used directly from your code. Inherited from PersistentBase.
GetHashCode()Gets the hash code (a number) that corresponds to the value of the current PersistentBase object. Inherited from PersistentBase.
GetMemberValue(String)Returns the value of the specified property. Inherited from XPBaseObject.
GetModificationsStore(Object) staticReturns an object that stores information about the modified properties when the Session.TrackPropertiesModifications option is enabled. Inherited from PersistentBase.
GetType()Gets the Type of the current instance. Inherited from Object.
KeyToString(Object) staticThis method supports the internal infrastructure and is not intended to be used direcly from your code.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
OnSaving() protectedInvoked when the current object is about to be saved. Inherited from PersistentBase.
RaiseChangedEvent(Object, ObjectChangeEventArgs) staticThis member supports the .NET Framework infrastructure and cannot be used directly from your code. Inherited from XPBaseObject.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
Reload()Reloads the state of the specified persistent object from the data store. Inherited from XPBaseObject.
RemoveChangedEventHandler(Object, IObjectChange) staticThis member supports the .NET Framework infrastructure and cannot be used directly from your code. Inherited from XPBaseObject.
RemoveChangedEventHandler(Object, ObjectChangeEventHandler) staticThis member supports the .NET Framework infrastructure and cannot be used directly from your code. Inherited from XPBaseObject.
Save()Saves the object to the data store. Inherited from XPBaseObject.
SetMemberValue(String, Object)Sets the value of the specified property. Inherited from XPBaseObject.
StringToKey(String) staticThis method supports the internal infrastructure and is not intended to be used direcly from your code.
ToString()Returns a string which represents the current object. Inherited from PersistentBase.

Events

NameDescription
ChangedOccurs when a property of the object is changed. Inherited from XPBaseObject.

See Also

XPWeakReference Class

DevExpress.Xpo Namespace