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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。