Partilhar via


InteropPermission.newmethod(InteropKind) Method

Definition

Creates a new instance of the InteropPermission class.

public:
 void newmethod(Dynamics::AX::Application::InteropKind _kind);
public void newmethod (Dynamics.AX.Application.InteropKind _kind);
override this.newmethod : Dynamics.AX.Application.InteropKind -> unit
Public Sub newmethod (_kind As InteropKind)

Parameters

_kind
InteropKind

An InteropKind system enumeration value that specifies access to managed or unmanaged code.

Remarks

The following code example shows a new instance of the InteropPermission class that specifies access to Win32 DLLs.

server static void main(Args args) 
{ 
    InteropPermission _perm; 
    _perm = new InteropPermission(InteropKind::DllInterop); 
}

Applies to