CodeAccessPermission Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The CodeAccessPermission class defines the underlying structure of code access permissions.
public ref class CodeAccessPermission abstract : Microsoft::Dynamics::Ax::Xpp::XppObjectBase
public abstract class CodeAccessPermission : Microsoft.Dynamics.Ax.Xpp.XppObjectBase
type CodeAccessPermission = class
inherit XppObjectBase
Public MustInherit Class CodeAccessPermission
Inherits XppObjectBase
- Inheritance
- Derived
Remarks
The following classes extend the CodeAccessPermission class: ExecutePermission, FileIOPermission, InteropPermission, RunAsPermission, SkipAOSValidationPermission, SqlDataDictionaryPermission, SqlStatementExecutePermission, and SysDatabaseLogPermission.
The following code example shows a class that is derived from the CodeAccessPermission class.
final class SysTestCodeAccessPermission extends CodeAccessPermission
{
str data;
}
This code example illustrates a step in the process of protecting an API.
Constructors
CodeAccessPermission() | |
CodeAccessPermission(IntPtr) |
Fields
kernelClass | (Inherited from XppObjectBase) |
Properties
AxClassId |
Methods
__shouldCallNew(Type) | (Inherited from XppObjectBase) |
addXppProxyReference(Type, Object) | (Inherited from XppObjectBase) |
assert() |
Declares that the calling code can invoke an API that is protected by a permission. |
assertMultiple(Set) |
Declares that the calling code can invoke an API that is protected by any of the permissions in a specified collection. |
Call(String, Object[], Type[], Object[]) | (Inherited from XppObjectBase) |
cancelTimeOut(Int32) | (Inherited from XppObjectBase) |
Copy() |
Creates and returns a copy of a permission class object. |
createKernelClass(Object[], Type[], Object[]) | (Inherited from XppObjectBase) |
demand() |
Checks the call stack to determine whether the permission that is required to invoke an API has been granted to the calling code. |
equal(XppObjectBase) | (Inherited from XppObjectBase) |
finalize() | (Inherited from XppObjectBase) |
GetIntPtr() | (Inherited from XppObjectBase) |
GetKernelInstanceUniqueId() | (Inherited from XppObjectBase) |
getTimeOutTimerHandle() | (Inherited from XppObjectBase) |
getXppProxyReference(Type) | (Inherited from XppObjectBase) |
handle() | |
IsManagedValid() | (Inherited from XppObjectBase) |
Issubsetof(CodeAccessPermission) |
Determines whether a current permission is a subset of the specified permission when it is overridden by a derived class. |
kernelhandle() | |
KernelInstanceDisposed() | (Inherited from XppObjectBase) |
MakeReflectionCall(String, Object[]) | (Inherited from XppObjectBase) |
newmethod() |
Initializes a new instance of the CodeAccessPermission class. |
notify() | (Inherited from XppObjectBase) |
notifyAll() | (Inherited from XppObjectBase) |
objectOnServer() |
Obsolete.
(Inherited from XppObjectBase)
|
revertAssert() |
Causes a previous call to the CodeAccessPermission.assert and CodeAccessPermission::assertMultiple methods to be removed and no longer in effect. |
setTimeOut(String, Int32, Boolean) |
Obsolete.
(Inherited from XppObjectBase)
|
setTimeOut(String, Int32) |
Obsolete.
(Inherited from XppObjectBase)
|
usageCount() | (Inherited from XppObjectBase) |
VerifyKernelClass() | (Inherited from XppObjectBase) |
wait() | (Inherited from XppObjectBase) |
Xml() | (Inherited from XppObjectBase) |
Xml(Int32) | (Inherited from XppObjectBase) |