SPUserCustomAction.Url property

Gets or sets the action that will be taken when the custom action is fired.

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

public virtual string Url { get; set; }

Property value

Type: System.String
Returns a String that contains the custom action’s action. Note that any tokens contained in this action will not be resolved.

This value can be a URL, an ECMAScript (JScript, JavaScript) function, or some other URI such as mailto. Any tokens will be resolved based on the table below prior to displaying the action in a browser:


Replacement Value


The server-relative URL to the site (ServerRelativeUrl).


The server-relative URL of the site collection (ServerRelativeUrl).


The item ID chosen in the list view.


The Web site-relative URL of the list item (Url).


The fully qualified URL to the site (Url).


The ID of the list (ID).


The server-relative URL of the site plus the list's folder.


The fully qualified URL of the request URL.


The recurrence ID of the list item (RecurrenceID).