Creates a DDEX provider–implemented object of the given type that is specialized for the specified data source.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Public Overridable Function CreateObject ( _
source As Guid, _
objType As Type _
) As Object
'使用
Dim instance As DataSourceSpecializer
Dim source As Guid
Dim objType As Type
Dim returnValue As Object
returnValue = instance.CreateObject(source, _
objType)
public virtual Object CreateObject(
Guid source,
Type objType
)
public:
virtual Object^ CreateObject(
Guid source,
Type^ objType
)
public function CreateObject(
source : Guid,
objType : Type
) : Object
Parameters
source
Type: System.GuidGUID of the data source for which the provider is specialized.
objType
Type: System.TypeData type of the provider object.
Return Value
Type: System.Object
A specialized object of the specified type.
Implements
IVsDataSourceSpecializer.CreateObject(Guid, Type)
Permissions
- 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.