Get/Set SNMP protocol version.
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.7.8.0 (0.7.8)
Syntax
| C# |
|---|
public virtual SnmpVersion Version { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Overridable Property Version As SnmpVersion |
| Visual C++ |
|---|
public: virtual property SnmpVersion Version { SnmpVersion get (); void set (SnmpVersion value); } |
Implements
IAgentParameters..::.Version
Exceptions
| Exception | Condition |
|---|---|
| SnmpInvalidVersionException | Thrown when attempting to set protocol version other then version 1 or 2c |