StorePermission.ToXml メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > StorePermission.ToXml メソッドの意味・解説 

StorePermission.ToXml メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

アクセス許可とその現在の状態を表す XML エンコーディング作成します

名前空間: System.Security.Permissions
アセンブリ: System (system.dll 内)
構文構文

Public Overrides Function
 ToXml As SecurityElement
Dim instance As StorePermission
Dim returnValue As SecurityElement

returnValue = instance.ToXml
public override SecurityElement ToXml ()
public:
virtual SecurityElement^ ToXml () override
public SecurityElement ToXml ()
public override function ToXml () : SecurityElement

戻り値
アクセス許可ステータス情報を含むアクセス許可XML エンコーディング格納している SecurityElement。

解説解説
使用例使用例

ToXml メソッド使用するコード例次に示します。このコード例は、StorePermission クラストピック取り上げているコード例一部分です。

Console.WriteLine("Using an XML roundtrip to reset the fourth
 permission.")
sp4.FromXml(sp2.ToXml())
rc = sp4.Equals(sp2)
Console.WriteLine("Does the XML roundtrip result equal the original
 permission? " + _
IIf(rc, "Yes", "No"))
Console.WriteLine("Using an XML roundtrip to reset the fourth permission.");
sp4.FromXml(sp2.ToXml());
rc = sp4.Equals(sp2);
Console.WriteLine("Does the XML roundtrip result equal the original permission?
 " + (rc ? "Yes" : "No"));
Console.WriteLine("Using an XML roundtrip to reset the fourth "
    + "permission.");
sp4.FromXml(sp2.ToXml());
rc = sp4.Equals(sp2);
Console.WriteLine("Does the XML roundtrip result equal the original "
    + "permission? " + ((rc) ? "Yes" : "No"));
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
StorePermission クラス
StorePermission メンバ
System.Security.Permissions 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

StorePermission.ToXml メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



StorePermission.ToXml メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS