Table of Contents

Class ResourceMetadata

Namespace
nanoFramework.WebServer.Mcp
Assembly
nanoFramework.WebServer.Mcp.dll

Represents metadata information for a registered resource, including its URI, name, description, MIME type, and associated method.

public class ResourceMetadata
Inheritance
ResourceMetadata
Inherited Members
Extension Methods

Constructors

ResourceMetadata()

public ResourceMetadata()

Properties

Description

Gets or sets the description of the resource.

public string Description { get; set; }

Property Value

string

Method

Gets or sets the MethodInfo representing the method associated with the resource.

public MethodInfo Method { get; set; }

Property Value

MethodInfo

MimeType

Gets or sets the MIME type of the resource.

public string MimeType { get; set; }

Property Value

string

Name

Gets or sets the name of the resource.

public string Name { get; set; }

Property Value

string

Target

Gets or sets the owning instance for instance-method resources. Null for static resources.

public object Target { get; set; }

Property Value

object

Uri

Gets or sets the unique absolute URI of the resource.

public Uri Uri { get; set; }

Property Value

Uri

Methods

ToString()

Returns a JSON string representation of the resource metadata.

public override string ToString()

Returns

string

A JSON string containing the resource's URI, name, description, and MIME type.