Session.GetKeyValue(Object) Method
Returns the key property’s value of the specified persistent object.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.1.dll
NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
Parameters
Name | Type | Description |
---|---|---|
theObject | Object | An object which represents the persistent object whose key property’s value is returned. |
Returns
Type | Description |
---|---|
Object | An object which represents the key property’s value of the specified persistent object. |
Remarks
If the specified persistent object is a null reference, a System.ArgumentNullException is thrown.
To set the value of the key property use the Session.SetKeyValue method.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the GetKeyValue(Object) method.
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.