WebMessageEncodingBindingElement.CreateMessageEncoderFactory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a message encoder factory that produces message encoders that can write either JavaScript Object Notation (JSON) or XML messages.
public:
override System::ServiceModel::Channels::MessageEncoderFactory ^ CreateMessageEncoderFactory();
public override System.ServiceModel.Channels.MessageEncoderFactory CreateMessageEncoderFactory ();
override this.CreateMessageEncoderFactory : unit -> System.ServiceModel.Channels.MessageEncoderFactory
Public Overrides Function CreateMessageEncoderFactory () As MessageEncoderFactory
Returns
The MessageEncoderFactory that encodes JSON, XML or "raw" binary messages.
Remarks
The value of the WriteEncoding property determines the character encoding used to write the message.
The maximum number of readers and writers that are allocated to pools and that is respectively available to process incoming and outgoing messages without allocating new readers are specified by the MaxReadPoolSize and MaxWritePoolSize properties.
The default complexity constraints that are used by the message encoders produced by the MessageEncoderFactory can be obtained from the XmlDictionaryReaderQuotas associated with this encoding by the ReaderQuotas property to protect against a class of denial of service (DOS) attacks that attempt to use message complexity to tie up endpoint processing resources.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示