共用方式為


SPUserCustomAction.CommandUIExtension Property

Gets and sets XML that defines an extension to the ribbon.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableConstraintAttribute(FixedId := "validXML", Type := ClientCallableConstraintType.Custom,  _
    Value := "It MUST be a valid XML document.")> _
<ClientCallablePropertyAttribute> _
Public Property CommandUIExtension As String
    Get
    Set
'Usage
Dim instance As SPUserCustomAction
Dim value As String

value = instance.CommandUIExtension

instance.CommandUIExtension = value
[ClientCallableConstraintAttribute(FixedId = "validXML", Type = ClientCallableConstraintType.Custom, Value = "It MUST be a valid XML document.")]
[ClientCallablePropertyAttribute]
public string CommandUIExtension { get; set; }

Property Value

Type: System.String
A string that contains XML elements that extend the ribbon.

Remarks

The string returned by this property contains elements that are localizable. Therefore the value that is returned can vary depending on the current thread's Thread.CurrentUICulture property. For more information, see the CommandUIExtensionResource property.

See Also

Reference

SPUserCustomAction Class

SPUserCustomAction Members

Microsoft.SharePoint Namespace

CommandUIExtensionResource

Other Resources

Declarative Customization of the Server Ribbon

CommandUIExtension Element