Returns network mask for the class value

Namespace:  SnmpSharpNet
Assembly:  SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.7.0.0 (0.7.0.0)

Syntax

C#
public IpAddress NetworkMask()
Visual Basic (Declaration)
Public Function NetworkMask As IpAddress
Visual C++
public:
IpAddress^ NetworkMask()

Return Value

Network mask or null if address doesn't belong to classes A, B or C

Remarks

Each IpAddress belongs to one of the 5 classes, A, B, C, D or E. D network class are multicast addresses and E is experimental class. Because D and E are not "real" network classes and as such don't have a network mask, only classes A, B and C will return a valid subnet mask. Classes D and E will return a null reference.

See Also