共用方式為


Ribbon.RegisterDataExtension Method

Registers a data extension for the Server ribbon.

Namespace:  Microsoft.Web.CommandUI
Assembly:  Microsoft.Web.CommandUI (in Microsoft.Web.CommandUI.dll)

Syntax

'Declaration
Public Overridable Sub RegisterDataExtension ( _
    xnExtension As XmlNode, _
    location As String _
)
'Usage
Dim instance As Ribbon
Dim xnExtension As XmlNode
Dim location As String

instance.RegisterDataExtension(xnExtension, _
    location)
public virtual void RegisterDataExtension(
    XmlNode xnExtension,
    string location
)

Parameters

  • xnExtension
    Type: System.Xml.XmlNode

    An XML node that contains the ribbon XML to insert into the ribbon.

  • location
    Type: System.String

    The location inside of the ribbon data where the extension will be loaded.

See Also

Reference

Ribbon Class

Ribbon Members

Microsoft.Web.CommandUI Namespace