OData 或 HTTP 协议或 OData 库使用的常量值。
继承层次结构
System.Object
Microsoft.Data.OData.ODataConstants
命名空间: Microsoft.Data.OData
程序集: Microsoft.Data.OData(在 Microsoft.Data.OData.dll 中)
语法
声明
Public NotInheritable Class ODataConstants
用法
public static class ODataConstants
public ref class ODataConstants abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ODataConstants = class end
public final class ODataConstants
ODataConstants 类型公开以下成员。
字段
名称 | 说明 | |
---|---|---|
![]() ![]() |
ContentIdHeader | HTTP 内容 ID 标头的名称。 |
![]() ![]() |
ContentTypeHeader | HTTP 内容类型标头的名称。 |
![]() ![]() |
DataServiceVersionHeader | OData“DataServiceVersion”HTTP 标头的名称。 |
![]() ![]() |
MethodDelete | 用于 DELETE 请求的 HTTP 方法名称。 |
![]() ![]() |
MethodGet | 用于 GET 请求的 HTTP 方法名称。 |
![]() ![]() |
MethodMerge | 用于 MERGE 请求的自定义 HTTP 方法名称。 |
![]() ![]() |
MethodPatch | 用于 PATCH 请求的 HTTP 方法名称。 |
![]() ![]() |
MethodPost | 用于 POST 请求的 HTTP 方法名称。 |
![]() ![]() |
MethodPut | 用于 PUT 请求的 HTTP 方法名称。 |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。