The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session.GetKeyValue(Object) Method

Returns the key property's value of the specified persistent object.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

public object GetKeyValue(object theObject)
Public Function GetKeyValue(theObject As Object) As Object
public object GetKeyValue(object theObject)
Public Function GetKeyValue(theObject As Object) As Object

Parameters

Name Type Description
theObject Object

An object which represents the persistent object whose key property's value is returned.

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.

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.

See Also