WebMessageEncodingElement クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
SOAP 以外のメッセージに使用される文字エンコーディングを指定する構成要素を表します。 このクラスは継承できません。
public ref class WebMessageEncodingElement sealed : System::ServiceModel::Configuration::BindingElementExtensionElement
public sealed class WebMessageEncodingElement : System.ServiceModel.Configuration.BindingElementExtensionElement
type WebMessageEncodingElement = class
inherit BindingElementExtensionElement
Public NotInheritable Class WebMessageEncodingElement
Inherits BindingElementExtensionElement
- 継承
-
WebMessageEncodingElement
- 継承
-
WebMessageEncodingElement
例
using System;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.ServiceModel.Configuration;
class Program
{
static void Main(string[] args)
{
WebMessageEncodingElement webMEE = new WebMessageEncodingElement();
Console.WriteLine("The BE type is: {0}", webMEE.BindingElementType);
int maxReadPoolSize = webMEE.MaxReadPoolSize;
Console.WriteLine("The MaxReadPoolSize is: {0}", maxReadPoolSize);
maxReadPoolSize = 128;
Console.WriteLine("The MaxReadPoolSize has been changed to: {0}", maxReadPoolSize);
int maxWritePoolSize = webMEE.MaxWritePoolSize;
Console.WriteLine("The MaxWritePoolSize is: {0}", maxWritePoolSize);
maxWritePoolSize = 48;
Console.WriteLine("The MaxWritePoolSize has been changed to: {0}", maxWritePoolSize);
Encoding webMessageEncoding = webMEE.WriteEncoding;
Console.WriteLine("The write encoding is: {0}", webMessageEncoding);
webMessageEncoding = UnicodeEncoding.Unicode;
Console.WriteLine("The write encoding has been changed to: {0}", webMessageEncoding);
XmlDictionaryReaderQuotasElement webMessageReaderQuotasElement = webMEE.ReaderQuotas;
Console.WriteLine("The max depth of the reader Quotas is: {0}", webMessageReaderQuotasElement.MaxDepth);
Console.WriteLine("Press <ENTER> to terminate the program.");
Console.ReadLine();
}
}
注釈
エンコードは、一連の Unicode 文字をバイト シーケンスに変換するプロセスです。 SOAP 以外のメッセージのエンコードの種類は、テキスト、JSON、未加工です。
WebMessageEncodingElementは、構成のWebMessageEncodingBindingElementを表します。 WebMessageEncodingBindingElement は、受信メッセージのコンテンツ タイプが、Windows Communication Foundation (WCF) によって提供されるさまざまな内部エンコーダー (テキスト/JSON/生バイナリ) にどのようにマップされるかをオーバーライドするために使用できる複合エンコーダーを接続するための拡張ポイントを提供します。 複合メッセージ エンコーダーは、SOAP または WS-Addressing をサポートしていません。
コンストラクター
| 名前 | 説明 |
|---|---|
| WebMessageEncodingElement() |
WebMessageEncodingElement クラスの新しいインスタンスを初期化します。 |
プロパティ
| 名前 | 説明 |
|---|---|
| BindingElementType |
この構成要素で有効になっているバインド要素の型を取得します。 |
| ConfigurationElementName |
この構成要素の名前を取得します。 (継承元 ServiceModelExtensionElement) |
| CurrentConfiguration |
現在のConfiguration インスタンスが属している構成階層を表す最上位ConfigurationElement インスタンスへの参照を取得します。 (継承元 ConfigurationElement) |
| ElementInformation |
ElementInformation オブジェクトのカスタマイズ不可能な情報と機能を含むConfigurationElement オブジェクトを取得します。 (継承元 ConfigurationElement) |
| ElementProperty |
ConfigurationElementProperty オブジェクト自体を表すConfigurationElement オブジェクトを取得します。 (継承元 ConfigurationElement) |
| EvaluationContext |
ContextInformation オブジェクトの ConfigurationElement オブジェクトを取得します。 (継承元 ConfigurationElement) |
| HasContext |
CurrentConfiguration プロパティが |
| Item[ConfigurationProperty] |
この構成要素のプロパティまたは属性を取得または設定します。 (継承元 ConfigurationElement) |
| Item[String] |
この構成要素のプロパティ、属性、または子要素を取得または設定します。 (継承元 ConfigurationElement) |
| LockAllAttributesExcept |
ロックされた属性のコレクションを取得します。 (継承元 ConfigurationElement) |
| LockAllElementsExcept |
ロックされた要素のコレクションを取得します。 (継承元 ConfigurationElement) |
| LockAttributes |
ロックされた属性のコレクションを取得します。 (継承元 ConfigurationElement) |
| LockElements |
ロックされた要素のコレクションを取得します。 (継承元 ConfigurationElement) |
| LockItem |
要素がロックされているかどうかを示す値を取得または設定します。 (継承元 ConfigurationElement) |
| MaxReadPoolSize |
新しいリーダーを割り当てずに同時に読み取ることができるメッセージの最大数を指定する値を取得または設定します。 |
| MaxWritePoolSize |
新しいライターを割り当てずに同時に送信できるメッセージの最大数を指定する値を取得または設定します。 |
| Properties |
プロパティのコレクションを取得します。 (継承元 ConfigurationElement) |
| ReaderQuotas |
このバインドで構成されたエンドポイントによって処理できる SOAP メッセージの複雑さに関する制約を取得または設定します。 |
| WebContentTypeMapperType |
受信メッセージのコンテンツ タイプがマップされる形式を指定する WebContentTypeMapper の型名を取得または設定します。 |
| WriteEncoding |
バインディングでメッセージを出力するために使用する文字セット エンコードを取得または設定します。 |