共用方式為


ITypeReflector.Instantiate 方法 (ITypeDescriptor, Int32, IMethodInstance)

產生對應到指定TypeDescriptor ,用於指定MethodInstance定義的預設值的集合。

命名空間:  Microsoft.BusinessData.Infrastructure
組件:  Microsoft.BusinessData (在 Microsoft.BusinessData.dll 中)

語法

'宣告
Function Instantiate ( _
    collectionTypeDescriptor As ITypeDescriptor, _
    size As Integer, _
    methodInstance As IMethodInstance _
) As Object
'用途
Dim instance As ITypeReflector
Dim collectionTypeDescriptor As ITypeDescriptor
Dim size As Integer
Dim methodInstance As IMethodInstance
Dim returnValue As Object

returnValue = instance.Instantiate(collectionTypeDescriptor, _
    size, methodInstance)
Object Instantiate(
    ITypeDescriptor collectionTypeDescriptor,
    int size,
    IMethodInstance methodInstance
)

參數

傳回值

類型:System.Object
例項的集合。

備註

Business Data Connectivity 物件模型中的物件的執行個體被與他們從取得中繼資料儲存區。使用連結至一個執行個體的中繼資料儲存區中,從另一個中繼資料儲存區的執行個體,會造成資料損毀及其他非預期的行為。如需詳細資訊,請參閱DatabaseBackedMetadataCatalogFileBackedMetadataCatalog,與RemoteSharedFileBackedMetadataCatalog

請參閱

參照

ITypeReflector 介面

ITypeReflector 成員

Instantiate 多載

Microsoft.BusinessData.Infrastructure 命名空間