MenuItemTemplate Constructor (String, String, String)
Initializes a new instance of the MenuItemTemplate class, uses the specified menu item text and image, and specifies a script to run when the control is clicked.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub New ( _
text As String, _
imageUrl As String, _
clientOnClickScript As String _
)
'Usage
Dim text As String
Dim imageUrl As String
Dim clientOnClickScript As String
Dim instance As New MenuItemTemplate(text, imageUrl, _
clientOnClickScript)
public MenuItemTemplate(
string text,
string imageUrl,
string clientOnClickScript
)
Parameters
text
Type: System.StringA String that represents the menu item text.
imageUrl
Type: System.StringA String that represents the URL for the image.
clientOnClickScript
Type: System.StringA String that represents the script to run.