| Visual Basic (Declaration) | |
|---|---|
Public Function New() | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As New Security() | |
| C# | |
|---|---|
public Security() | |
| Managed Extensions for C++ | |
|---|---|
public: Security(); | |
| C++/CLI | |
|---|---|
public: Security(); | |
The Security class is used with Version 3 messages to provide message authentication and privacy. The Security object is not used or added to a message unless MessageBase.Version is SnmpVersion.Three. If a message to be sent is a Version 3 message, at a minimum you must set Username to a valid user name for the Agent you are sending requests to.
Target Platforms: Microsoft .NET Framework 2.0