Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an instance of the COM class by using the specified COM object.
Syntax
client server public static COM createFromObject(COM object)
Run On
Called
Parameters
- object
Type: COM Class
The instance of the COM class to use to create the new instance of the COM class.
Return Value
Type: COM Class
An instance of the COM class for the COM object that is specified by the object 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.