CodeMethodAction Element in Actions (SolutionManifestDeclarativeExtensions Schema)
Applies to: SharePoint Server 2010
The <CodeMethodAction> element is used to execute a custom code action or to execute one of the predefined actions provided by Microsoft Business Connectivity Services (BCS).
Namespace: https://schemas.microsoft.com/office/2009/05/BusinessApplications/Manifest/DeclarativeExtensions
Schema: SolutionManifestDeclarativeExtensions
<CodeMethodAction MethodType = "String" QualifiedTypeName = "String" MethodName = "String" Caption = "String" Tooltip = "String" Image = "String" DisplayLocations = "String" DisplayOrder = "Int" Scope = "String" Name = "String" Description = "String"> </CodeMethodAction>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
MethodType |
The type of the action to execute. Required. The following table lists the possible values for this attribute.
|
||||||||||||||||||||||||
QualifiedTypeName |
The assembly-qualified name of the class that defines the code action, which includes the name of the assembly from which the class was loaded. For more information about how to specify this value, see Type.AssemblyQualifiedName Property. Example: QualifiedTypeName="CustomCodeActionNameSpace.CustomCodeActionCalssName, CustomCodeActionAssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=3c6b236b1e85d97a" Optional. Attribute type: String |
||||||||||||||||||||||||
MethodName |
The name of the method to execute in the class. Optional. Attribute type: String |
||||||||||||||||||||||||
Caption |
The caption for the action. This is displayed as a caption for the action in the Outlook user interface. Optional. Attribute type: String |
||||||||||||||||||||||||
Tooltip |
The tooltip for the action. This is displayed as a tooltip for the action in the Outlook user interface. Optional. Attribute type: String |
||||||||||||||||||||||||
Image |
The path to an icon file. The icon is displayed for the action in the Outlook user interface. The path should be relative to the location of the solution manifest. Optional. Attribute type: String |
||||||||||||||||||||||||
DisplayLocations |
The locations in the Outlook user interface where this action should be displayed. This attribute can be a combination of the following bit flags: 0 (none, action is not displayed anywhere), 1 (action is displayed on the external data parts menu), 2 (action is displayed on the item context menu), 4 (action is displayed on the ribbon). Optional. Attribute type: String |
||||||||||||||||||||||||
DisplayOrder |
Used if the action is surfaced in a List External Data Part. Specifies the suggested position of this action among the other actions of this external content type in the menu. Optional. Attribute type: Int |
||||||||||||||||||||||||
Scope |
Used if the action is surfaced in a List External Data Part. Specifies whether this action needs an item to be selected in a List External Data Part. Optional. The following table lists the possible values for this attribute.
|
||||||||||||||||||||||||
Name |
A name for this action. Required. Attribute type: String |
||||||||||||||||||||||||
Description |
A description for this action. Optional. Attribute type: String |
Child Elements
Element |
Description |
---|---|
Parameters Element in ActionDefinition (SolutionManifestDeclarativeExtensions Schema) |
Actions can take parameters. The Parameters element lists the parameters of the action. |
Parent Elements
Element |
Description |
---|---|
Actions Element in DeclarativeContextDefinition (SolutionManifestDeclarativeExtensions Schema) |
The Actions element that contains this action. |