Partilhar via


SPMobileNavigation.AddAccessKey Method

Registers the value of the AccessKey property as the access key for the specified control.

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

Syntax

'Declaration
Protected Overridable Function AddAccessKey ( _
    navigation As MobileControl _
) As MobileControl
'Usage
Dim navigation As MobileControl
Dim returnValue As MobileControl

returnValue = Me.AddAccessKey(navigation)
protected virtual MobileControl AddAccessKey(
    MobileControl navigation
)

Parameters

Return Value

Type: System.Web.UI.MobileControls.MobileControl
A MobileControl object that is identical to the navigation parameter except that it now has a custom attribute identifying the AccessKey property as its access key.

Remarks

Typically, the SPMobileNavigation object passes a child control to the AddAccessKey method as part of the CreateChildControls method.

See Also

Reference

SPMobileNavigation Class

SPMobileNavigation Members

Microsoft.SharePoint.MobileControls Namespace