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


<ClientCallableConstraintAttribute(FixedId := "validXML", Type := ClientCallableConstraintType.Custom,  _
    Value := "It MUST be a valid XML document.")> _
<ClientCallablePropertyAttribute> _
Public Property CommandUIExtension As String
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.")]
public string CommandUIExtension { get; set; }

Property Value

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


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


SPUserCustomAction Class

SPUserCustomAction Members

Microsoft.SharePoint Namespace


Other Resources

Declarative Customization of the Server Ribbon

CommandUIExtension Element