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

호출자의 권한 부여에 대해 테스트할 수 있는 권한입니다.

반품

호출자에게 부여된 사용 권한이 사용 권한을 포함하면 .

특성

설명

사용 권한 부여는 정책에 따라 결정되며 어설션과 같은 재정의 대상 수요와 다릅니다. IsGranted 또한 스택의 다른 호출자와 관계없이 호출 코드 어셈블리의 권한 부여만 테스트합니다.

적용 대상