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

호출자 부여에 대하여 검사할 사용 권한입니다.

반환

Boolean

perm 권한 등의 사용 권한이 호출자에게 부여되면 true이고, 그렇지 않으면 false입니다.

특성

설명

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

적용 대상