一款简单易用的基础网络通讯组件库。

MappingMethod 结构

表示Web API的映射方法。

Definition

命名空间: TouchSocket.WebApi
程序集: TouchSocket.WebApi (在 TouchSocket.WebApi.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
C#
public readonly struct MappingMethod
Inheritance
Object    ValueType    MappingMethod

构造函数

MappingMethod 初始化MappingMethod结构的新实例。

属性

HttpMethod 获取映射方法的HTTP方法。
IsRegex 获取一个值,该值指示URL是否为正则表达式。
RpcMethod 获取映射方法的RPC方法。
Url 获取映射方法的URL。

方法

EqualsIndicates whether this instance and a specified object are equal.
(继承自 ValueType。)
GetHashCodeReturns the hash code for this instance.
(继承自 ValueType。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
ToStringReturns the fully qualified type name of this instance.
(继承自 ValueType。)

扩展方法

Map 将源对象的属性映射到目标对象的属性中。
(由 Mapper 定义。)
Map 将源对象映射到目标类型的实例。
(由 Mapper 定义。)
MapTTarget 将源对象映射到指定目标类型的新实例。
(由 Mapper 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

参见