WebPartToolPart.ShouldAddProperty Method

Specifies whether a property should be created for the specified PropertyInfo object.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Function ShouldAddProperty ( _
    pi As PropertyInfo _
) As Boolean
'Usage
Dim instance As WebPartToolPart
Dim pi As PropertyInfo
Dim returnValue As Boolean

returnValue = instance.ShouldAddProperty(pi)
public bool ShouldAddProperty(
    PropertyInfo pi
)

Parameters

Return Value

Type: System.Boolean
true if the object specified by the pi parameter is added to the property; otherwise, false.

See Also

Reference

WebPartToolPart Class

WebPartToolPart Members

Microsoft.SharePoint.WebPartPages Namespace