Last change
on this file since 457 was 457, checked in by coas-nagasima, 4 years ago |
ファイルを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csharp;charset=UTF-8
|
File size:
634 bytes
|
Line | |
---|
1 |
|
---|
2 | namespace Lextm.SharpSnmpLib.Mib.Elements.Types
|
---|
3 | {
|
---|
4 | public class IpAddressType : OctetStringType
|
---|
5 | {
|
---|
6 | public IpAddressType(IModule module, string name, ISymbolEnumerator symbols)
|
---|
7 | : base(module, name, symbols)
|
---|
8 | {
|
---|
9 | if (this.Size.Count != 0)
|
---|
10 | {
|
---|
11 | throw new MibException("Size definition not allowed for IpAddress type!");
|
---|
12 | }
|
---|
13 |
|
---|
14 | // IpAddress type is defined as:
|
---|
15 | // IpAddress ::=
|
---|
16 | // [APPLICATION 0]
|
---|
17 | // IMPLICIT OCTET STRING (SIZE (4))
|
---|
18 | this.Size.Add(new ValueRange(4, null));
|
---|
19 | }
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.