NullableConverter.IsValid(ITypeDescriptorContext, Object) 方法
定义
返回给定的值对象是否对此类型和对指定的上下文有效。Returns whether the given value object is valid for this type and for the specified context.
public:
override bool IsValid(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value);
public override bool IsValid (System.ComponentModel.ITypeDescriptorContext context, object value);
override this.IsValid : System.ComponentModel.ITypeDescriptorContext * obj -> bool
Public Overrides Function IsValid (context As ITypeDescriptorContext, value As Object) As Boolean
参数
- context
- ITypeDescriptorContext
一个 ITypeDescriptorContext,用于提供格式上下文。An ITypeDescriptorContext that provides a format context.
返回
如果指定的值对此对象有效,则为 true;否则为 false。true if the specified value is valid for this object; otherwise, false.