ODataMessageWriter 类

表示用于写入所有 OData 负载(条目、源、元数据文档、服务文档等)的编辑器类。

继承层次结构

System.Object
  Microsoft.Data.OData.ODataMessageWriter

命名空间:  Microsoft.Data.OData
程序集:  Microsoft.Data.OData(在 Microsoft.Data.OData.dll 中)

语法

声明
Public NotInheritable Class ODataMessageWriter _
    Implements IDisposable
用法
Dim instance As ODataMessageWriter
public sealed class ODataMessageWriter : IDisposable
public ref class ODataMessageWriter sealed : IDisposable
[<SealedAttribute>]
type ODataMessageWriter =  
    class
        interface IDisposable
    end
public final class ODataMessageWriter implements IDisposable

ODataMessageWriter 类型公开以下成员。

构造函数

  名称 说明
公共方法 ODataMessageWriter(IODataRequestMessage) 创建给定请求消息的新 ODataMessageWriter。
公共方法 ODataMessageWriter(IODataResponseMessage) 创建给定响应消息的新 ODataMessageWriter。
公共方法 ODataMessageWriter(IODataRequestMessage, ODataMessageWriterSettings) 创建给定的请求消息和消息编辑器设置的新 ODataMessageWriter。
公共方法 ODataMessageWriter(IODataResponseMessage, ODataMessageWriterSettings) 创建给定的响应消息和消息编辑器设置的新 ODataMessageWriter。
公共方法 ODataMessageWriter(IODataRequestMessage, ODataMessageWriterSettings, IEdmModel) 创建给定的请求消息和消息编辑器设置的新 ODataMessageWriter。
公共方法 ODataMessageWriter(IODataResponseMessage, ODataMessageWriterSettings, IEdmModel) 创建给定的响应消息和消息编辑器设置的新 ODataMessageWriter。

页首

方法

  名称 说明
公共方法 CreateODataBatchWriter 创建 ODataBatchWriter 以写入一批请求或响应。
公共方法 CreateODataBatchWriterAsync 异步创建 ODataBatchWriter 以写入一批请求或响应。
公共方法 CreateODataCollectionWriter 创建 ODataCollectionWriter 以写入基元集合或复杂值(结果为服务操作调用)。
公共方法 CreateODataCollectionWriterAsync 异步创建 ODataCollectionWriter 以写入基元集合或复杂值(结果为服务操作调用)。
公共方法 CreateODataEntryWriter 创建 ODataWriter 以写入条目。
公共方法 CreateODataEntryWriterAsync 异步创建 ODataWriter 以写入条目。
公共方法 CreateODataFeedWriter 创建 ODataWriter 以写入源。
公共方法 CreateODataFeedWriterAsync 异步创建 ODataWriter 以写入源。
公共方法 CreateODataParameterWriter 创建 ODataParameterWriter 以写入参数负载。
公共方法 CreateODataParameterWriterAsync 异步创建 ODataParameterWriter 以写入参数负载。
公共方法 Dispose [M:System.IDisposable.Dispose()] 实现编辑器非托管资源的清理。
公共方法 Equals (从 Object 继承。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString (从 Object 继承。)
公共方法 WriteEntityReferenceLink 写入作为消息负载的单一 $links 查询的结果。
公共方法 WriteEntityReferenceLinkAsync 异步写入作为消息负载的单一 $links 查询的结果。
公共方法 WriteEntityReferenceLinks 写入作为消息负载的 $links 查询的结果。
公共方法 WriteEntityReferenceLinksAsync 异步写入作为消息负载的 $links 查询的结果。
公共方法 WriteError 写入 ODataError 作为消息负载。
公共方法 WriteErrorAsync 异步写入 ODataError 作为消息负载。
公共方法 WriteMetadataDocument 写入作为消息正文的元数据文档。
公共方法 WriteProperty 写入 ODataProperty 作为消息负载。
公共方法 WritePropertyAsync 异步写入 ODataProperty 作为消息负载。
公共方法 WriteServiceDocument 用指定的 defaultWorkspace 作为消息负载写入服务文档。
公共方法 WriteServiceDocumentAsync 用指定的 defaultWorkspace 作为消息负载异步写入服务文档。
公共方法 WriteValue 写入作为消息正文的单个值。
公共方法 WriteValueAsync 异步写入作为消息正文的单个值。

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.Data.OData 命名空间