Share via


SecurityManager.IsGranted(IPermission) メソッド

定義

注意事項

この API は非推奨になりました。

注意事項

IsGranted is obsolete and will be removed in a future release of the .NET Framework. Please use the PermissionSet property of either AppDomain or Assembly instead.

アクセス許可が呼び出し元に与えられているかどうかを判断します。

public:
 static bool IsGranted(System::Security::IPermission ^ perm);
[System.Obsolete]
public static bool IsGranted (System.Security.IPermission perm);
public static bool IsGranted (System.Security.IPermission perm);
[System.Obsolete("IsGranted is obsolete and will be removed in a future release of the .NET Framework.  Please use the PermissionSet property of either AppDomain or Assembly instead.")]
public static bool IsGranted (System.Security.IPermission perm);
[<System.Obsolete>]
static member IsGranted : System.Security.IPermission -> bool
static member IsGranted : System.Security.IPermission -> bool
[<System.Obsolete("IsGranted is obsolete and will be removed in a future release of the .NET Framework.  Please use the PermissionSet property of either AppDomain or Assembly instead.")>]
static member IsGranted : System.Security.IPermission -> bool
Public Shared Function IsGranted (perm As IPermission) As Boolean

パラメーター

perm
IPermission

呼び出し元に与えられたかどうかをテストするアクセス許可。

戻り値

呼び出し元に与えられているアクセス許可に、アクセス許可 perm が含まれている場合は true。それ以外の場合は false

属性

注釈

アクセス許可の付与はポリシーによって決定され、アサートなどのオーバーライドの対象となる需要とは異なります。 また、 IsGranted スタック上の他の呼び出し元とは関係なく、呼び出し元コード アセンブリの許可のみをテストします。

適用対象