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

Dim instance As PolicyLevel Dim returnValue As SecurityElement returnValue = instance.ToXml
セキュリティ オブジェクトとそのすべての状態情報を含む XML エンコーディング。

ToXml メソッドの使用方法を次のコード例に示します。このコード例は、PolicyLevel クラスのトピックで取り上げているコード例の一部分です。
Dim pLevelCopy As PolicyLevel = PolicyLevel.CreateAppDomainLevel() ' Create a copy of the PolicyLevel using ToXml/FromXml. pLevelCopy.FromXml(pLevel.ToXml()) If ComparePolicyLevels(pLevel, pLevelCopy) Then Console.WriteLine("The ToXml/FromXml roundtrip was successful.") Else Console.WriteLine("ToXml/FromXml roundtrip failed.") End If
PolicyLevel pLevelCopy = PolicyLevel.CreateAppDomainLevel(); // Create a copy of the PolicyLevel using ToXml/FromXml. pLevelCopy.FromXml(pLevel.ToXml()); if (ComparePolicyLevels(pLevel, pLevelCopy)) { Console.WriteLine("The ToXml/FromXml roundtrip was successful."); } else { Console.WriteLine("ToXml/FromXml roundtrip failed."); }
PolicyLevel pLevelCopy = PolicyLevel.CreateAppDomainLevel(); // Create a copy of the PolicyLevel using ToXml/FromXml. pLevelCopy.FromXml(pLevel.ToXml()); if (ComparePolicyLevels(pLevel, pLevelCopy)) { Console.WriteLine("The ToXml/FromXml roundtrip " + "was successful."); } else { Console.WriteLine("ToXml/FromXml roundtrip failed."); }

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に収録されているすべての辞書からPolicyLevel.ToXml メソッドを検索する場合は、下記のリンクをクリックしてください。

- PolicyLevel.ToXml メソッドのページへのリンク