| Visual Basic (Declaration) | |
|---|---|
Public Function New( _ ByVal authenticationPassword As String, _ ByVal authenticationProtocol As AuthenticationProtocol _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim authenticationPassword As String Dim authenticationProtocol As AuthenticationProtocol Dim instance As New Passwords(authenticationPassword, authenticationProtocol) | |
| C# | |
|---|---|
public Passwords( string authenticationPassword, AuthenticationProtocol authenticationProtocol ) | |
| Managed Extensions for C++ | |
|---|---|
public: Passwords( string* authenticationPassword, AuthenticationProtocol authenticationProtocol ) | |
| C++/CLI | |
|---|---|
public: Passwords( String^ authenticationPassword, AuthenticationProtocol authenticationProtocol ) | |
Parameters
- authenticationPassword
- Either null or the value used by the manager. Used for packet authentication.
- authenticationProtocol
- Specifies the authentication hash 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).
Target Platforms: Microsoft .NET Framework 2.0