PowerSNMP for .NET CF
Passwords Constructor(String,AuthenticationProtocol,String,PrivacyProtocol)
See Also  Send comments on this topic.
Dart.Snmp Namespace > Passwords Class > Passwords Constructor : Passwords Constructor(String,AuthenticationProtocol,String,PrivacyProtocol)




authenticationPassword
Either null or the value used by the manager. Used for packet authentication.
authenticationProtocol
Specifies the authentication hash to use.
privacyPassword
Either null or the value used by the manager. Used for packet privacy (decryption).
privacyProtocol
Specifies the encryption protocol to use.
Initializes a new instance using authentication and privacy.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal authenticationPassword As String, _
   ByVal authenticationProtocol As AuthenticationProtocol, _
   ByVal privacyPassword As String, _
   ByVal privacyProtocol As PrivacyProtocol _
)
Visual Basic (Usage)Copy Code
Dim authenticationPassword As String
Dim authenticationProtocol As AuthenticationProtocol
Dim privacyPassword As String
Dim privacyProtocol As PrivacyProtocol
 
Dim instance As New Passwords(authenticationPassword, authenticationProtocol, privacyPassword, privacyProtocol)

Parameters

authenticationPassword
Either null or the value used by the manager. Used for packet authentication.
authenticationProtocol
Specifies the authentication hash to use.
privacyPassword
Either null or the value used by the manager. Used for packet privacy (decryption).
privacyProtocol
Specifies the encryption protocol to use.

Exceptions

ExceptionDescription
System.ArgumentExceptionA parameter is a string of 0 length, or authenticationPassword is null and privacyPassword is not.

Remarks

Instances of Passwords is added to AuthoritativeEngine.Users to enable SNMP version 3 authentication and privacy (decryption).

If privacyPassword in not null, then authenticationPassword must not be null.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.