SnmpDataExtensionToBytes Method |
Namespace: Lextm.SharpSnmpLibAssembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntaxpublic static byte[] ToBytes(
this ISnmpData data
)
<ExtensionAttribute>
Public Shared Function ToBytes (
data As ISnmpData
) As Byte()
Dim data As ISnmpData
Dim returnValue As Byte()
returnValue = data.ToBytes()
public:
[ExtensionAttribute]
static array<unsigned char>^ ToBytes(
ISnmpData^ data
)
[<ExtensionAttribute>]
static member ToBytes :
data : ISnmpData -> byte[]
Parameters
- data ISnmpData
- The SNMP data.
Return Value
Byte
A byte array representing the SNMP data.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ISnmpData. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also