MCPToolResource Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| MCPToolResource(String) |
Initializes a new instance of MCPToolResource. |
| MCPToolResource(String, IDictionary<String,String>) |
Initializes a new instance of MCPToolResource. |
MCPToolResource(String)
- Source:
- MCPToolResource.cs
Initializes a new instance of MCPToolResource.
public MCPToolResource(string serverLabel);
new Azure.AI.Agents.Persistent.MCPToolResource : string -> Azure.AI.Agents.Persistent.MCPToolResource
Public Sub New (serverLabel As String)
Parameters
- serverLabel
- String
The label for the MCP server.
Exceptions
serverLabel is null.
Applies to
MCPToolResource(String, IDictionary<String,String>)
- Source:
- MCPToolResource.cs
Initializes a new instance of MCPToolResource.
public MCPToolResource(string serverLabel, System.Collections.Generic.IDictionary<string,string> headers);
new Azure.AI.Agents.Persistent.MCPToolResource : string * System.Collections.Generic.IDictionary<string, string> -> Azure.AI.Agents.Persistent.MCPToolResource
Public Sub New (serverLabel As String, headers As IDictionary(Of String, String))
Parameters
- serverLabel
- String
The label for the MCP server.
- headers
- IDictionary<String,String>
The headers for the MCP server updates.
Exceptions
serverLabel or headers is null.