MessageBuffer.CreateMessage 方法

定义

返回原始消息的副本。Returns a copy of the original message.

public:
 abstract System::ServiceModel::Channels::Message ^ CreateMessage();
public abstract System.ServiceModel.Channels.Message CreateMessage ();
abstract member CreateMessage : unit -> System.ServiceModel.Channels.Message
Public MustOverride Function CreateMessage () As Message

返回

Message

一个原始 Message 实例的相同副本,您先前将此实例提供给 CreateBufferedCopy(Int32) 实例的 Message 方法。An identical copy of the original Message instance you previously provided to the CreateBufferedCopy(Int32) method of a Message instance.

注解

调用此方法将创建一个原始 Message 实例的相同副本,您先前将此实例提供给 CreateBufferedCopy 实例的 Message 方法。Calling this method creates an identical copy of the original Message instance you previously provided to the CreateBufferedCopy method of a Message instance. 然后可以将消息保存到持久存储区中。You can then save the message to a durable storage.

适用于