Creates an instance of the specified DDEX support entity that is implemented by the DDEX provider.
Namespace:  Microsoft.VisualStudio.Data.Core
Assembly:  Microsoft.VisualStudio.Data.Core (in Microsoft.VisualStudio.Data.Core.dll)
Syntax
声明
Function CreateObject ( _
    objType As Type _
) As Object
Object CreateObject(
    Type objType
)
Object^ CreateObject(
    Type^ objType
)
abstract CreateObject : 
        objType:Type -> Object 
function CreateObject(
    objType : Type
) : Object
Parameters
- objType
Type: System.Type
A type of DDEX support entity. 
Return Value
Type: System.Object
An instance of the specified DDEX support entity that is implemented by the DDEX provider.
Exceptions
| Exception | Condition | 
|---|---|
| DataProviderException | The DDEX provider does not support the support entity, or instantiation of a new instance of the support entity threw an exception, whether by way of a CreateInstance call through reflection or through the DDEX provider’s CreateObject method implementation, or creation of the default or client object implementation (if there is one) failed.  | 
Remarks
This method delegates to the CreateObject method, passing Empty as the source parameter value.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.