次の方法で共有


COM.getObjectEx(String) Method

Definition

Returns an instance of a COM object that is specified by its file name.

public:
 static Dynamics::AX::Application::COM ^ getObjectEx(System::String ^ _fileName);
public static Dynamics.AX.Application.COM getObjectEx (string _fileName);
static member getObjectEx : string -> Dynamics.AX.Application.COM
Public Shared Function getObjectEx (_fileName As String) As COM

Parameters

_fileName
String

The name of the file that provides the functionality for the COM object that is used to create the instance of the COM class.

Returns

COM

An instance of the COM class that is specified by the filename parameter; nullNothingnullptrunita null reference (Nothing in Visual Basic) if the instance 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