Dart SNMP Library 4.0
Add Method
The User object to add to the dictionary.
Description
Add a User to the dictionary.
Syntax
Visual Basic
Public Sub Add( _
   ByVal newItem As User _
) 
Parameters
newItem
The User object to add to the dictionary.
Example
Demonstrates adding SNMPv3 User credentials to the Agent's authorized users collection.
Private Sub AddUser(username As String, authPass As String, _
authProt As AuthenticationConstants, privPass As String, privProt As PrivacyConstants)
    Dim snmpUser As New User
    snmpUser.Name = username
    snmpUser.AuthenticationPassword = authPass
    snmpUser.AuthenticationProtocol = authProt
    snmpUser.PrivacyPassword = privPass
    snmpUser.PrivacyProtocol = privProt
    Agent1.AuthoritativeEngine.Users.Add snmpUser
End Sub
See Also

UserMap Collection  | UserMap Members


PowerSNMP for ActiveX Documentation Version 4.0
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic