/// <summary>
 /// Initializes a new instance of the <see cref="SnmpCompliance"/> class.
 /// </summary>
 /// <param name="group">The group compliance flag</param>
 /// <param name="value">The compliance value</param>
 /// <param name="syntax">The value syntax, or null</param>
 /// <param name="writeSyntax">The value write syntax, or null</param>
 /// <param name="access">The access mode, or null</param>
 /// <param name="description">The compliance description</param>
 public SnmpCompliance(
     bool group,
     MibValue value,
     MibType syntax,
     MibType writeSyntax,
     SnmpAccess access,
     string description)
 {
     this.group       = group;
     this.value       = value;
     this.syntax      = syntax;
     this.writeSyntax = writeSyntax;
     this.access      = access;
     this.description = description;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SnmpVariation"/> class.
 /// </summary>
 /// <param name="value">the variation value</param>
 /// <param name="syntax">the value syntax, or null</param>
 /// <param name="writeSyntax">the value write syntax, or null</param>
 /// <param name="access">the access mode, or null</param>
 /// <param name="requiredCells">the cell values required for creation</param>
 /// <param name="defaultValue">the default value, or null</param>
 /// <param name="description">the variation description</param>
 public SnmpVariation(
     MibValue value,
     MibType syntax,
     MibType writeSyntax,
     SnmpAccess access,
     IList <MibValue> requiredCells,
     MibValue defaultValue,
     string description)
 {
     this.value         = value;
     this.syntax        = syntax;
     this.writeSyntax   = writeSyntax;
     this.access        = access;
     this.requiredCells = requiredCells;
     this.defaultValue  = defaultValue;
     this.description   = description;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SnmpObjectType"/> class.
 /// </summary>
 /// <param name="syntax">The object type syntax</param>
 /// <param name="units">The units description, or null</param>
 /// <param name="access">The access mode</param>
 /// <param name="status">The type status</param>
 /// <param name="description">The type description, or null</param>
 /// <param name="reference">The type reference, or null</param>
 /// <param name="index">The list of index objects</param>
 /// <param name="defaultValue">The default value, or null</param>
 public SnmpObjectType(
     MibType syntax,
     string units,
     SnmpAccess access,
     SnmpStatus status,
     string description,
     string reference,
     IList <SnmpIndex> index,
     MibValue defaultValue)
     : base("OBJECT-TYPE", description)
 {
     this.syntax       = syntax;
     this.units        = units;
     this.access       = access;
     this.status       = status;
     this.reference    = reference;
     this.index        = index;
     this.augments     = null;
     this.defaultValue = defaultValue;
 }