Skip to content
Docs Try Aspire

McpServerMetadata Methods

Record Methods 8 members
Represents metadata for an MCP server used by the MCP Inspector.
public record McpServerMetadata
{
public virtual McpServerMetadata <Clone>$()
{
// ...
}
}
Deconstruct(string, EndpointReference, McpTransportType, string) Section titled Deconstruct(string, EndpointReference, McpTransportType, string)
public record McpServerMetadata
{
public void Deconstruct(
out string Name,
out EndpointReference Endpoint,
out McpTransportType TransportType,
out string Path)
{
// ...
}
}
Name string
Endpoint EndpointReference
TransportType McpTransportType
Path string
Equals(object?) Section titled Equals(object?) override bool
Determines whether the specified object is equal to the current object.
public record McpServerMetadata
{
public override bool Equals(
object? obj)
{
// ...
}
}
obj object? The object to compare with the current object.
bool true if the specified object is equal to the current object; otherwise, false.
Equals(McpServerMetadata?) Section titled Equals(McpServerMetadata?) virtual bool
Indicates whether the current object is equal to another object of the same type.
public record McpServerMetadata
{
public virtual bool Equals(
McpServerMetadata? other)
{
// ...
}
}
other McpServerMetadata? An object to compare with this object.
bool true if the current object is equal to the other parameter; otherwise, false.
GetHashCode Section titled GetHashCode override int
Serves as the default hash function.
public record McpServerMetadata
{
public override int GetHashCode()
{
// ...
}
}
int A hash code for the current object.
op_Equality(McpServerMetadata?, McpServerMetadata?) Section titled op_Equality(McpServerMetadata?, McpServerMetadata?) static bool
public record McpServerMetadata
{
public static bool operator ==(
McpServerMetadata? left,
McpServerMetadata? right)
{
// ...
}
}
op_Inequality(McpServerMetadata?, McpServerMetadata?) Section titled op_Inequality(McpServerMetadata?, McpServerMetadata?) static bool
public record McpServerMetadata
{
public static bool operator !=(
McpServerMetadata? left,
McpServerMetadata? right)
{
// ...
}
}
ToString Section titled ToString override string
Returns a string that represents the current object.
public record McpServerMetadata
{
public override string ToString()
{
// ...
}
}
string A string that represents the current object.