System.Drawing.Design.ToolboxItem.ValidatePropertyType Method

Validates that an object is of a given type.

Syntax

protected void ValidatePropertyType (string propertyName, object value, Type expectedType, bool allowNull)

Parameters

propertyName
The name of the property to validate.
value
Optional value against which to validate.
expectedType
The expected type of the property.
allowNull
true to allow null; otherwise, false.

Remarks

Requirements

Namespace: System.Drawing.Design
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 2.0.0.0