Table of Contents

Class ResourceTemplateReference

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Represents a reference to a resource or resource template definition.

public sealed class ResourceTemplateReference : Reference
Inheritance
ResourceTemplateReference
Inherited Members

Constructors

ResourceTemplateReference()

Initializes a new instance of the ResourceTemplateReference class.

public ResourceTemplateReference()

Properties

Uri

Gets or sets the URI or URI template of the resource.

[JsonPropertyName("uri")]
public required string? Uri { get; set; }

Property Value

string

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.