ObjValue Property
The current object's value.
Syntax
ANSI (Cross Platform) int GetObjValue(int iObjIndex, char* &lpObjValue, int &lenObjValue);
int SetObjValue(int iObjIndex, const char* lpObjValue, int lenObjValue); Unicode (Windows) INT GetObjValue(INT iObjIndex, LPSTR &lpObjValue, INT &lenObjValue);
INT SetObjValue(INT iObjIndex, LPCSTR lpObjValue, INT lenObjValue);
- (NSString*)objValue:(int)objIndex; - (void)setObjValue:(int)objIndex:(NSString*)newObjValue;
- (NSData*)objValueB:(int)objIndex; - (void)setObjValueB:(int)objIndex:(NSData*)newObjValue;
#define PID_SNMPTCPMGR_OBJVALUE 18 IPWORKSSNMP_EXTERNAL void* IPWORKSSNMP_CALL IPWorksSNMP_SNMPTCPMgr_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSSNMP_EXTERNAL int IPWORKSSNMP_CALL IPWorksSNMP_SNMPTCPMgr_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal); IPWORKSSNMP_EXTERNAL int IPWORKSSNMP_CALL IPWorksSNMP_SNMPTCPMgr_CheckIndex(void *lpObj, int propid, int arridx);
Default Value
""
Remarks
The current object's value. The corresponding object id and type are specified by the ObjOid and ObjectType properties.
Example
SNMPControl.ObjCount = 1 SNMPControl.ObjId(0) = "1.3.6.1.2.1.1.1.0" SNMPControl.ObjValue(0) = "New Value"
The ObjIndex parameter specifies the index of the item in the array. The size of the array is controlled by the ObjCount property.
This property is not available at design time.
Data Type
Binary String