Compartilhar via


IParameter.CreateDefaultInstance Method

Creates an instance of this parameter using the default values associated with the specified method instance.

Namespace:  Microsoft.BusinessData.MetadataModel
Assembly:  Microsoft.BusinessData (in Microsoft.BusinessData.dll)

Syntax

'Declaration
Function CreateDefaultInstance ( _
    forMethodInstance As IMethodInstance _
) As Object
'Usage
Dim instance As IParameter
Dim forMethodInstance As IMethodInstance
Dim returnValue As Object

returnValue = instance.CreateDefaultInstance(forMethodInstance)
Object CreateDefaultInstance(
    IMethodInstance forMethodInstance
)

Parameters

Return Value

Type: System.Object
An instance of the parameter.

Exceptions

Exception Condition
InvalidOperationException

The direction of the parameter is “Out” or “Return”.

Remarks

Instances of objects in the Business Data Connectivity object model are tied to the Metadata Store they are obtained from. Using instances tied to one Metadata Store with the instances from another Metadata Store will cause data corruption and other unexpected behavior. For more information, see DatabaseBackedMetadataCatalog, FileBackedMetadataCatalog, and RemoteSharedFileBackedMetadataCatalog.

See Also

Reference

IParameter Interface

IParameter Members

Microsoft.BusinessData.MetadataModel Namespace