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 メソッドのページへのリンク