Version

IsValueAllowed Method

Returns a value indicating whether a particular value can be added to the standard values collection.
Syntax
'Declaration
 
Protected Overrides Function IsValueAllowed( _
   ByVal context As ITypeDescriptorContext, _
   ByVal value As Object _
) As Boolean
protected override bool IsValueAllowed( 
   ITypeDescriptorContext context,
   object value
)

Parameters

context
The ITypeDescriptorContext
value
The value

Return Value

True if the value is allowed and can be added to the standard values collection; false if the value cannot be added to the standard values collection.
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