Partager via


Menu.TokenNamesAndValues property

Gets the token name and value pairs to use for the current menu.

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

Syntax

'Declaration
Public ReadOnly Property TokenNamesAndValues As Dictionary(Of String, String)
    Get
'Usage
Dim instance As Menu
Dim value As Dictionary(Of String, String)

value = instance.TokenNamesAndValues
public Dictionary<string, string> TokenNamesAndValues { get; }

Property value

Type: System.Collections.Generic.Dictionary<String, String>
The token name and value pairs.

Remarks

The client-side ECMA script that provides the implementation of the menus in a browser supports client-side token replacement using values from a menu. The MenuItemTemplate objects used in the MenuTemplate object support the use of these tokens in the ClientOnClickScript or ClientOnClickNavigateUrl properties.

See also

Reference

Menu class

Menu members

Microsoft.SharePoint.WebControls namespace