Share via


WebPartGalleryItem.OnClientAdd property

When overridden in a derived class, gets the client ECMAScript (JavaScript, JScript) function name to be called when the user clicks the Add button in the WebPartAdder control to add the selected WebPart.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property OnClientAdd As String
    Get
'Usage
Dim instance As WebPartGalleryItem
Dim value As String

value = instance.OnClientAdd
public abstract string OnClientAdd { get; }

Property value

Type: System.String
The client ECMAScript (JavaScript, JScript) function name.

See also

Reference

WebPartGalleryItem class

WebPartGalleryItem members

Microsoft.SharePoint.WebPartPages namespace