Share via


CachedDataAnnotationsModelMetadata.ComputeConvertEmptyStringToNull Method

Retrieves a value that indicates whether empty strings that are posted back in forms should be converted to null.

Namespace:  System.Web.Http.Metadata.Providers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Protected Overrides Function ComputeConvertEmptyStringToNull As Boolean
'Usage
Dim returnValue As Boolean

returnValue = Me.ComputeConvertEmptyStringToNull()
protected override bool ComputeConvertEmptyStringToNull()
protected:
virtual bool ComputeConvertEmptyStringToNull() override
abstract ComputeConvertEmptyStringToNull : unit -> bool 
override ComputeConvertEmptyStringToNull : unit -> bool 
protected override function ComputeConvertEmptyStringToNull() : boolean

Return Value

Type: System.Boolean
true if empty strings that are posted back in forms should be converted to null; otherwise, false.

See Also

Reference

CachedDataAnnotationsModelMetadata Class

System.Web.Http.Metadata.Providers Namespace