objValue (property)
The current object's value.
Syntax
- (NSString*)objValue:(int)objIndex; - (void)setObjValue:(int)objIndex:(NSString*)newObjValue;
- (NSData*)objValueB:(int)objIndex; - (void)setObjValueB:(int)objIndex:(NSData*)newObjValue;
public func objValue(objIndex: Int32) throws -> String
public func setObjValue(objIndex: Int32, newObjValue: String) throws -> Void
public func objValueB(objIndex: Int32) throws -> Data
public func setObjValueB(objIndex: Int32, newObjValue: Data) throws -> Void
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.