Class ResourceMetadata
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
Method
Gets or sets the MethodInfo representing the method associated with the resource.
public MethodInfo Method { get; set; }
Property Value
MimeType
Gets or sets the MIME type of the resource.
public string MimeType { get; set; }
Property Value
Name
Gets or sets the name of the resource.
public string Name { get; set; }
Property Value
Target
Gets or sets the owning instance for instance-method resources. Null for static resources.
public object Target { get; set; }
Property Value
Uri
Gets or sets the unique absolute URI of the resource.
public Uri Uri { get; set; }
Property Value
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.