SnmpPrinter Class | 
          
Namespace: Zebra.Sdk.Printer
The SnmpPrinter type exposes the following members.
| Name | Description | |
|---|---|---|
| SnmpPrinter(String) | 
            Creates an instance of a Zebra printer which is limited to only SNMP operations.
              | |
| SnmpPrinter(String, String, String) | 
            Creates an instance of a Zebra printer, with the given community names, which is limited to only SNMP operations.
              | 
| Name | Description | |
|---|---|---|
| CommunityNameGet | 
            Gets the SNMP get community name.
              | |
| CommunityNameSet | 
            Gets the SNMP set community name.
              | 
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object.  (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function.   (Inherited from Object.) | |
| GetOidValue | 
            Gets the value of the specified oid.
              | |
| GetType | Gets the Type of the current instance.  (Inherited from Object.) | |
| SetOidValue(String, Int32) | 
            Sets the value of the specified oid to valueToSet.
              | |
| SetOidValue(String, String) | 
            Sets the value of the specified oid to valueToSet.
              | |
| ToString | Returns a string that represents the current object.  (Inherited from Object.) | 
using System; using Zebra.Sdk.Printer; public class SnmpPrinterExample { public static void Main(string[] args) { SnmpPrinter myPrinter = new SnmpPrinter("1.2.3.4", "getCommunityName", "setCommunityName"); try { string printAdjOid = "1.3.6.1.4.1.10642.6.4.0"; string printAdjFromSnmp = myPrinter.GetOidValue(printAdjOid); Console.WriteLine($"printAdj = {printAdjFromSnmp}"); int newprintAdj = int.Parse(printAdjFromSnmp) + 1; myPrinter.SetOidValue(printAdjOid, newprintAdj); string friendlyNameOid = "1.3.6.1.4.1.10642.20.3.5.0"; string friendlyNameFromSnmp = myPrinter.GetOidValue(friendlyNameOid); Console.WriteLine($"friendlyName = {friendlyNameFromSnmp}"); string newfriendlyName = "AwesomePrinter"; myPrinter.SetOidValue(friendlyNameOid, newfriendlyName); } catch (SnmpException e) { Console.WriteLine(e.ToString()); } } }