Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Vocabularies Inheritance: System.Attribute

Syntax

Summary

Marks a CLR operation as an MCP task. After OData routes are mapped, the host stamps Microsoft.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 for ElicitUrlProperties. Empty when omitted.

Syntax

Property Value

Type: string[]