DataProtectionPermission.Union メソッド
アセンブリ: System.Security (system.security.dll 内)
構文Dim instance As DataProtectionPermission Dim target As IPermission Dim returnValue As IPermission returnValue = instance.Union(target)
戻り値
現在のアクセス許可と指定したアクセス許可の和集合を表す新しいアクセス許可。
例外
解説Union を呼び出すと、現在のアクセス許可と指定したアクセス許可の両方が表す操作をすべて表すアクセス許可が作成されます。いずれかのアクセス許可を要求し、その要求が満たされた場合、両者の和集合を表すアクセス許可に対する要求も満たされます。
使用例Union メソッドを使用するコード例を次に示します。このコード例は、DataProtectionPermission クラスのトピックで取り上げているコード例の一部分です。
WriteLine("Creating the union of the second and first permissions.") sp4 = CType(sp2.Union(sp1), DataProtectionPermission) Write("Result of the union of the second permission with the first: ") WriteLine(sp4.Flags.ToString())
Console.WriteLine("Creating the union of the second and first " +
"permissions.");
sp4 = (DataProtectionPermission)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 = (DataProtectionPermission)(sp2.Union(sp1));
Console.WriteLine("Result of the union of the second permission "
+ "with the first: " + sp4.get_Flags());
プラットフォーム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に収録されているすべての辞書からDataProtectionPermission.Union メソッドを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からDataProtectionPermission.Union メソッド
を検索
- DataProtectionPermission.Union メソッドのページへのリンク