ToolboxItem.ValidatePropertyValue(String, Object) 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在将属性分配给属性字典前先对其进行验证。
protected:
 virtual System::Object ^ ValidatePropertyValue(System::String ^ propertyName, System::Object ^ value);
	protected virtual object ValidatePropertyValue (string propertyName, object value);
	protected virtual object? ValidatePropertyValue (string propertyName, object? value);
	abstract member ValidatePropertyValue : string * obj -> obj
override this.ValidatePropertyValue : string * obj -> obj
	Protected Overridable Function ValidatePropertyValue (propertyName As String, value As Object) As Object
	参数
- propertyName
 - String
 
要验证的属性的名称。
- value
 - Object
 
要根据其进行验证的值。
返回
用于执行验证的值。
例外
              value 为 null 且 propertyName 为“IsTransient”。
注解
ValidatePropertyValue每当在属性字典中设置值时,将调用 方法。 使用此方法,可以在提交对象之前更改其值,或通过引发异常来拒绝它。