PhysicalAddress.ToString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the String representation of the address of this instance.
public:
override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String
Returns
A String containing the address contained in this instance.
Examples
The following code example demonstrates displaying the address in a PhysicalAddress instance.
void ParseTest()
{
PhysicalAddress^ address = PhysicalAddress::Parse( L"AC1EBA22" );
Console::WriteLine( L"Address parsed as {0}", address->ToString() );
PhysicalAddress^ address2 = PhysicalAddress::Parse( L"ac1eba22" );
Console::WriteLine( L"Address2 parsed as {0}", address2->ToString() );
bool test = address->Equals( address2 );
Console::WriteLine( L"Equal? {0}", test );
}
public static void ParseTest()
{
PhysicalAddress address = PhysicalAddress.Parse("AC1EBA22");
Console.WriteLine("Address parsed as {0}", address.ToString());
PhysicalAddress address2 = PhysicalAddress.Parse("ac1eba22");
Console.WriteLine("Address2 parsed as {0}", address2.ToString());
bool test = address.Equals(address2);
Console.WriteLine("Equal? {0}", test);
}
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.