Share via


ITypeDescriptor.TryGetDefaultValue Method

Attempts to get the default value of the type descriptor defined for the specified method instance.

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

Syntax

'Declaration
Function TryGetDefaultValue ( _
    forMethodInstance As IMethodInstance, _
    <OutAttribute> ByRef value As Object _
) As Boolean
'Usage
Dim instance As ITypeDescriptor
Dim forMethodInstance As IMethodInstance
Dim value As Object
Dim returnValue As Boolean

returnValue = instance.TryGetDefaultValue(forMethodInstance, _
    value)
bool TryGetDefaultValue(
    IMethodInstance forMethodInstance,
    out Object value
)

Parameters

Return Value

Type: System.Boolean
true if the value is found; otherwise, false.

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

ITypeDescriptor Interface

ITypeDescriptor Members

Microsoft.BusinessData.MetadataModel Namespace