DevForce Help Reference
DevForceDefaultValueFunction Method


Returns the default value of a type: usually '0' or null for any data type. Note that this is subtly different from the TypeFns.GetDefaultValue method in that it returns Today for a default date time.
Syntax
'Declaration
 
Public Shared Function DevForceDefaultValueFunction( _
   ByVal pType As Type _
) As Object
'Usage
 
Dim pType As Type
Dim value As Object
 
value = EntityMetadata.DevForceDefaultValueFunction(pType)
public static object DevForceDefaultValueFunction( 
   Type pType
)

Parameters

pType
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityMetadata Class
EntityMetadata Members

Send Feedback