SPMenuField.MenuTemplateId property
Gets or sets the value to be used when setting the MenuTemplateId property of the underlying Menu control.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property MenuTemplateId As String
Get
Set
'Usage
Dim instance As SPMenuField
Dim value As String
value = instance.MenuTemplateId
instance.MenuTemplateId = value
public string MenuTemplateId { get; set; }
Property value
Type: System.String
The identifier of the MenuTemplate control to be used.
Remarks
This property is used to specify the default menu template to be used. If the value of MenuTemplateIdField is null or an empty string, this default menu template identifier is used for all items in the result set. If the value of MenuTemplateIdField does specify a field name, items in the result set on which that field value is null or an empty string use this default menu template identifier.