Version

ValidateEditItem Method (MaskUITypeEditor)

Validates an item selected by the user on the list and returns it.
Syntax
'Declaration
 
Protected Overrides Function ValidateEditItem( _
   ByVal context As ITypeDescriptorContext, _
   ByVal provider As IServiceProvider, _
   ByVal value As Object, _
   ByVal selectedEntry As Object _
) As Object
protected override object ValidateEditItem( 
   ITypeDescriptorContext context,
   IServiceProvider provider,
   object value,
   object selectedEntry
)

Parameters

context
An System.ComponentModel.ITypeDescriptorContext that can be used to gain additional context information.
provider
An System.IServiceProvider that this editor can use to obtain services.
value
The object to edit.
selectedEntry
The currently selected object.

Return Value

The selectedEntry object.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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