NamedPermissionSet.FromXml メソッド
アセンブリ: mscorlib (mscorlib.dll 内)
構文
例外
解説
使用例FromXml メソッドを使用して NamedPermissionSet オブジェクトを再作成する方法を次のコード例に示します。このコード例は、NamedPermissionSet クラスのトピックで取り上げているコード例の一部分です。
' Perform a ToXml/FromXml round trip. namedPS2.FromXml(namedPS1.ToXml()) TextBox1.AppendText(ControlChars.Lf + "Result of the ToXml/FromXml round trip:") ' For simplicity the results are displayed using a method call. DisplayPermissions(namedPS2)
// Perform a ToXml/FromXml round trip. namedPS2.FromXml(namedPS1.ToXml()); Console.WriteLine("\nResult of the ToXml/FromXml round trip:"); // For simplicity the results are displayed using a method call. DisplayPermissions(namedPS2);
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- NamedPermissionSet.FromXml メソッドのページへのリンク