Active Property
Enables or disables sending and receiving of SNMP packets.
Syntax
ANSI (Cross Platform) int GetActive();
int SetActive(int bActive); Unicode (Windows) BOOL GetActive();
INT SetActive(BOOL bActive);
@property (nonatomic,readwrite,assign,getter=active,setter=setActive:) BOOL active; - (BOOL)active; - (void)setActive:(BOOL)newActive;
#define PID_SNMPTCPMGR_ACTIVE 2 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);
Default Value
FALSE
Remarks
The Active property must be set to True before any SNMP requests or traps are sent or received.
Note: The class will automatically set this property to True if it is not already and you attempt to send a request or trap.
This property is not available at design time.
Data Type
Boolean