PhysicalAddress::None Field

 

Returns a new PhysicalAddress instance with a zero length address. This field is read-only.

Namespace:   System.Net.NetworkInformation
Assembly:  System (in System.dll)

public:
static initonly PhysicalAddress^ None

The Parse method returns None if you specify null address.

The following code example demonstrates using this field to test the result of parsing an address.

PhysicalAddress^ StrictParseAddress( String^ address )
{
   PhysicalAddress^ newAddress = PhysicalAddress::Parse( address );
   if ( PhysicalAddress::None->Equals( newAddress ) )
      return nullptr;

   return newAddress;
}


.NET Framework
Available since 2.0
Return to top
Show: