Based on the supplied privacyProtocol, return instance of the privacy protocol implementation class.

Namespace: SnmpSharpNet
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)

Syntax

C#
public static IPrivacyProtocol GetInstance(
	PrivacyProtocols privProtocol
)
Visual Basic
Public Shared Function GetInstance ( _
	privProtocol As PrivacyProtocols _
) As IPrivacyProtocol
Visual C++
public:
static IPrivacyProtocol^ GetInstance(
	PrivacyProtocols privProtocol
)

Parameters

privProtocol
Type: SnmpSharpNet..::..PrivacyProtocols
Privacy protocol code. Available protocols are DES, AES128, AES192, AES256 and TripleDES.

Return Value

Privacy protocol implementation class on success. If privacy protocol is None then null is returned.

See Also