共用方式為


DataSourceSpecializer.CreateObject 方法

建立指定之資料來源是專門用來指定型別的 DDEX 提供者實作的物件。

命名空間:  Microsoft.VisualStudio.Data.Framework
組件:  Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)

語法

'宣告
Public Overridable Function CreateObject ( _
    source As Guid, _
    objType As Type _
) As Object
public virtual Object CreateObject(
    Guid source,
    Type objType
)
public:
virtual Object^ CreateObject(
    Guid source, 
    Type^ objType
)
abstract CreateObject : 
        source:Guid * 
        objType:Type -> Object  
override CreateObject : 
        source:Guid * 
        objType:Type -> Object
public function CreateObject(
    source : Guid, 
    objType : Type
) : Object

參數

  • source
    類型:Guid

    提供者所使用的特定資料來源的 GUID。

  • objType
    類型:Type

    提供者物件的資料型別。

傳回值

類型:Object
指定型別的特定物件。

實作

IVsDataSourceSpecializer.CreateObject(Guid, Type)

備註

繼承者注意事項

這個方法的基底實作會傳回 nullnull 參考 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

DataSourceSpecializer 類別

Microsoft.VisualStudio.Data.Framework 命名空間