Definition
Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Vocabularies Inheritance: System.AttributeSyntax
Summary
Marks a CLR operation as an MCP task. After OData routes are mapped, the host stampsMicrosoft.OData.Mcp.V1.Task on the matching EDM action.
Remarks
Pair with Restier[BoundOperation] / [UnboundOperation] or an OData controller action.
Convention ModelBuilder hosts use HasMcpTask() instead. Pair
McpElicitUrlAttribute to name elicit URL properties without relying on the
constructor convenience arguments. Functions are not tasked.
Examples
Constructors
.ctor
Marks the method as an MCP task.Syntax
Parameters
Properties
ElicitUrlProperties
Gets JSON property names forElicitUrlProperties. Empty when omitted.
Syntax
Property Value
Type:string[]