COM.createFromInterface(Int64) Method

Definition

Creates an instance of the COM class by using the specified COM interface.

public:
 static Dynamics::AX::Application::COM ^ createFromInterface(long _interface);
public static Dynamics.AX.Application.COM createFromInterface (long _interface);
static member createFromInterface : int64 -> Dynamics.AX.Application.COM
Public Shared Function createFromInterface (_interface As Long) As COM

Parameters

_interface
Int64

The interface to use to create the new instance of the COM class.

Returns

COM

An instance of the COM class for the COM interface that is specified by the interface parameter; nullNothingnullptrunita null reference (Nothing in Visual Basic) if the instance of the COM class could not be created.

Remarks

To help reduce security risks that are associated with unmanaged code, make sure that you validate the objects that are passed to this method, and that all DLLs used for your COM objects are protected by access control lists.

Applies to