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) | ![]() |
---|---|
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) |
C# | |
---|---|
public Passwords( string authenticationPassword, AuthenticationProtocol authenticationProtocol, string privacyPassword, PrivacyProtocol privacyProtocol ) |
Managed Extensions for C++ | |
---|---|
public: Passwords( string* authenticationPassword, AuthenticationProtocol authenticationProtocol, string* privacyPassword, PrivacyProtocol privacyProtocol ) |
C++/CLI | |
---|---|
public: Passwords( String^ authenticationPassword, AuthenticationProtocol authenticationProtocol, String^ privacyPassword, PrivacyProtocol 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.
Exception | Description |
---|---|
System.ArgumentException | A parameter is a string of 0 length, or authenticationPassword is null and privacyPassword is not. |
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.
Target Platforms: Microsoft .NET Framework 2.0