SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I add custom action to a sharepoint list actios menu for all list .

I want get custom actions that define for a special list in VS.

How to get custom action ?

share|improve this question

To limit the Custom action to a specific type of list you need to specify RegistrationType and RegistrationId like this:

<!-- Microsoft.SharePoint.StandardMenu : ActionsMenu : Site Actions menu of document library -->
<CustomAction Id="CustomWareCustomActions.Microsoft.SharePoint.StandardMenu.CustomList.ActionsMenu"
Title="CUSTOMWARE - Microsoft.SharePoint.StandardMenu : ActionsMenu">
<UrlAction Url=""/>
share|improve this answer
Thanks, but How do find custom actin of list in code? – ar.gorgin Apr 14 '12 at 4:39
Here is how to access Custom Actions using code… – Per Jakobsen Apr 14 '12 at 8:07
up vote 1 down vote accepted

I find , I use this code for get custom action of list .:)

 SPWeb web = SPContext.Current.Web;
 SPList list = web.Lists[MyList];

 SPUserCustomActionCollection actions =list.UserCustomActions;

This link is useful for me .

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.