共用方式為


TryCreateObjectInstance 委派

命名空間:  Microsoft.Data.Edm.EdmToClrConversion
組件:  Microsoft.Data.Edm (在 Microsoft.Data.Edm.dll 中)

語法

'宣告
Public Delegate Function TryCreateObjectInstance ( _
    edmValue As IEdmStructuredValue, _
    clrType As Type, _
    converter As EdmToClrConverter, _
    <OutAttribute> ByRef objectInstance As Object, _
    <OutAttribute> ByRef objectInstanceInitialized As Boolean _
) As Boolean
'用途
Dim instance As New TryCreateObjectInstance(AddressOf HandlerMethod)
public delegate bool TryCreateObjectInstance(
    IEdmStructuredValue edmValue,
    Type clrType,
    EdmToClrConverter converter,
    out Object objectInstance,
    out bool objectInstanceInitialized
)
public delegate bool TryCreateObjectInstance(
    IEdmStructuredValue^ edmValue, 
    Type^ clrType, 
    EdmToClrConverter^ converter, 
    [OutAttribute] Object^% objectInstance, 
    [OutAttribute] bool% objectInstanceInitialized
)
type TryCreateObjectInstance = 
    delegate of 
        edmValue:IEdmStructuredValue * 
        clrType:Type * 
        converter:EdmToClrConverter * 
        objectInstance:Object byref * 
        objectInstanceInitialized:bool byref -> bool
JScript 支援使用委派,但不支援新的宣告。

參數

傳回值

型別:System.Boolean

請參閱

參考

Microsoft.Data.Edm.EdmToClrConversion 命名空間