PhysicalAddress.None Veld

Definitie

Retourneert een nieuw PhysicalAddress exemplaar met een adres met lengte nul. Dit veld is alleen-lezen.

public: static initonly System::Net::NetworkInformation::PhysicalAddress ^ None;
public static readonly System.Net.NetworkInformation.PhysicalAddress None;
 staticval mutable None : System.Net.NetworkInformation.PhysicalAddress
Public Shared ReadOnly None As PhysicalAddress 

Waarde van veld

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u dit veld gebruikt om het resultaat van het parseren van een adres te testen.

public static PhysicalAddress? StrictParseAddress(string? address)
{
    PhysicalAddress newAddress = PhysicalAddress.Parse(address);
    if (PhysicalAddress.None.Equals(newAddress))
        return null;

    return newAddress;
}

Opmerkingen

De Parse methode retourneert None als u het adres opgeeft null .

Van toepassing op