GacMembershipCondition.ToString メソッド
アセンブリ: mscorlib (mscorlib.dll 内)

Dim instance As GacMembershipCondition Dim returnValue As String returnValue = instance.ToString
メンバシップ条件の文字列形式。


ToString メソッドを使用するコード例を次に示します。このコード例は、GacMembershipCondition クラスのトピックで取り上げているコード例の一部分です。
Dim Gac1 As New GacMembershipCondition Dim Gac2 As New GacMembershipCondition ' Roundtrip a GacMembershipCondition to and from an XML encoding. Gac2.FromXml(Gac1.ToXml()) Dim result As Boolean = Gac2.Equals(Gac1) If result Then Console.WriteLine(("Result of ToXml() = " & _ Gac2.ToXml().ToString())) Console.WriteLine(("Result of ToFromXml roundtrip = " & _ Gac2.ToString())) Else Console.WriteLine(Gac2.ToString()) Console.WriteLine(Gac1.ToString()) Return False End If
GacMembershipCondition Gac1 = new GacMembershipCondition(); GacMembershipCondition Gac2 = new GacMembershipCondition(); // Roundtrip a GacMembershipCondition to and from an XML encoding. Gac2.FromXml(Gac1.ToXml()); bool result = Gac2.Equals(Gac1); if (result) { Console.WriteLine( "Result of ToXml() = " + Gac2.ToXml().ToString()); Console.WriteLine( "Result of ToFromXml roundtrip = " + Gac2.ToString()); } else { Console.WriteLine(Gac2.ToString()); Console.WriteLine(Gac1.ToString()); return false; }
GacMembershipCondition ^ Gac1 = gcnew GacMembershipCondition; GacMembershipCondition ^ Gac2 = gcnew GacMembershipCondition; // Roundtrip a GacMembershipCondition to and from an XML encoding. Gac2->FromXml(Gac1->ToXml()); bool result = Gac2->Equals(Gac1); if (result) { Console::WriteLine("Result of ToXml() = {0}", Gac2->ToXml()); Console::WriteLine( "Result of ToFromXml roundtrip = {0}", Gac2); } else { Console::WriteLine(Gac2->ToString()); Console::WriteLine(Gac1->ToString()); return false; }
GacMembershipCondition gac1 = new GacMembershipCondition(); GacMembershipCondition gac2 = new GacMembershipCondition(); // Roundtrip a GacMembershipCondition to and from an XML encoding. gac2.FromXml(gac1.ToXml()); boolean result = gac2.Equals(gac1); if (result) { Console.WriteLine(("Result of ToXml() = " + gac2.ToXml().ToString())); Console.WriteLine(("Result of ToFromXml roundtrip = " + gac2.ToString())); } else { Console.WriteLine(gac2.ToString()); Console.WriteLine(gac1.ToString()); return false; }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からGacMembershipCondition.ToString メソッドを検索する場合は、下記のリンクをクリックしてください。

- GacMembershipCondition.ToString メソッドのページへのリンク