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

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

StorePermission.Union メソッド

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

現在のアクセス許可指定したアクセス許可和集合を表すアクセス許可作成します

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

Public Overrides Function
 Union ( _
    target As IPermission _
) As IPermission
Dim instance As StorePermission
Dim target As IPermission
Dim returnValue As IPermission

returnValue = instance.Union(target)
public override IPermission Union (
    IPermission target
)
public:
virtual IPermission^ Union (
    IPermission^ target
) override
public IPermission Union (
    IPermission target
)
public override function Union (
    target : IPermission
) : IPermission

パラメータ

target

現在のアクセス許可和集合を持つアクセス許可。これは、現在のアクセス許可と同じ型であることが必要です。

戻り値
現在のアクセス許可指定したアクセス許可和集合を表す新しアクセス許可

例外例外
例外種類条件

ArgumentException

targetnull 参照 (Visual Basic では Nothing) ではなく現在のアクセス許可と同じ型でもありません。

解説解説
使用例使用例

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

Console.WriteLine("Creating the union of the second and first
 permissions.")
sp4 = CType(sp2.Union(sp1), System.Security.Permissions.StorePermission)
Console.WriteLine("Result of the union of the second permission
 with the first:  " + _
sp4.Flags)

Console.WriteLine("Creating the union of the second and first permissions.");
sp4 = (StorePermission)sp2.Union(sp1);
Console.WriteLine("Result of the union of the second permission with the first:
  " + sp4.Flags);

Console.WriteLine("Creating the union of the second and first "
    + "permissions.");
sp4 = (StorePermission)sp2.Union(sp1);
Console.WriteLine("Result of the union of the second permission "
    + "with the first:  " + sp4.get_Flags());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
StorePermission クラス
StorePermission メンバ
System.Security.Permissions 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からStorePermission.Union メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からStorePermission.Union メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からStorePermission.Union メソッドを検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS