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.
Tries to create 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
'Declaration
Function TryCreateObject(Of TObject) As TObject
TObject TryCreateObject<TObject>()
generic<typename TObject>
TObject TryCreateObject()
abstract TryCreateObject : unit -> 'TObject
JScript does not support generic types or methods.
Type Parameters
- TObject
The object.
Return Value
Type: TObject
An instance of the specified DDEX support entity that is implemented by the DDEX provider, if the DDEX provider supports it; otherwise, the default instance of type Object.
Exceptions
Exception | Condition |
---|---|
DataProviderException | 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 TryCreateObject 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.