ObjType Property

The current object's type.

Syntax

int GetObjType(int iObjIndex);
int SetObjType(int iObjIndex, int iObjType);

Possible Values

OT_INTEGER(2), 
OT_OCTET_STRING(4),
OT_NULL(5),
OT_OBJECT_ID(6),
OT_IPADDRESS(64),
OT_COUNTER_32(65),
OT_GAUGE_32(66),
OT_TIME_TICKS(67),
OT_OPAQUE(68),
OT_NSAP(69),
OT_COUNTER_64(70),
OT_UNSIGNED_INTEGER_32(71),
OT_NO_SUCH_OBJECT(128),
OT_NO_SUCH_INSTANCE(129),
OT_END_OF_MIB_VIEW(130)

Default Value

5

Remarks

The current object's type. The default type is NULL (5).

The corresponding object id and value are specified by the ObjOid and ObjValue properties.

Possible object type values include:

otInteger (2) 2
otOctetString (4) 4
otNull (5) 5
otObjectID (6) 6
otIPAddress (64)64
otCounter32 (65)65
otGauge32 (66)66
otTimeTicks (67)67
otOpaque (68)68
otNSAP (69)69
otCounter64 (70)70
otUnsignedInteger32 (71)71

The class also supports the following artificial object values used to designate error conditions:

otNoSuchObject (128)No such object error.
otNoSuchInstance (129)No such instance error.
otEndOfMibView (130)End of MIB View error.

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

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SNMP 2020 Qt Edition - Version 20.0 [Build 8202]