ODataVersion Property

The OData Version.

Syntax

ANSI (Cross Platform)
int GetODataVersion();
int SetODataVersion(int iODataVersion); Unicode (Windows) INT GetODataVersion();
INT SetODataVersion(INT iODataVersion);

Possible Values

OD_V2(0), 
OD_V3(1),
OD_V4(2),
OD_AUTO(3)
@property (nonatomic,readwrite,assign,getter=ODataVersion,setter=setODataVersion:) int ODataVersion;
- (int)ODataVersion;
- (void)setODataVersion:(int)newODataVersion;

Possible Values

OD_V2(0), 
OD_V3(1),
OD_V4(2),
OD_AUTO(3)
#define PID_ODATA_ODATAVERSION 64

IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_OData_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_OData_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

3

Remarks

This property specifies the OData version to be used in the request and expected in the response. Possible values are:

  • 0 (odV2)
  • 1 (odv3)
  • 3 (odV4)
  • 4 (odAuto - default)
When set to 4 (odAuto - default) the class will automatically determine the version used by the service and use the same version to format requests and parse responses. When calling CreateEntry or UpdateEntry if the service version is not already known from a previous operation the class will first query the service to determine the version.

Once the version of the service has been automatically determined it will continue to be used until Reset is called.

This property is not available at design time.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 C++ Edition - Version 20.0 [Build 8307]