Gets a value indicating whether the Web Part infrastructure should perform data validation of Web Part properties before setting them.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
The value of the ShouldValidate property is always true unless the Web Part's properties are being deserialized with the data retrieved from the Windows SharePoint Services database. In this case, the properties do not need to be validated because they were previously validated before storage, and the ShouldValidate property value will be false. This property is available only at runtime.