JsonReaderWriterFactory.CreateJsonReader メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
JavaScript Object Notation (JSON) でエンコードされたストリームまたはバッファーを XML Infoset にマップできる XmlDictionaryReader を作成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| CreateJsonReader(Byte[], XmlDictionaryReaderQuotas) |
JavaScript Object Notation (JSON) でエンコードされたバッファーを XML Infoset にマップできる XmlDictionaryReader を作成します。 |
| CreateJsonReader(Stream, XmlDictionaryReaderQuotas) |
JavaScript Object Notation (JSON) でエンコードされたストリームを XML Infoset にマップできる XmlDictionaryReader を作成します。 |
| CreateJsonReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas) |
指定したサイズとオフセットの JavaScript Object Notation (JSON) でエンコードされたバッファーを XML Infoset にマップできる XmlDictionaryReader を作成します。 |
| CreateJsonReader(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) |
指定したサイズとオフセットの JavaScript Object Notation (JSON) でエンコードされたストリームを XML Infoset にマップできる XmlDictionaryReader を作成します。 |
| CreateJsonReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) |
指定したサイズとオフセットと文字エンコードを使用して、JavaScript Object Notation (JSON) でエンコードされたバッファーを XML Infoset にマップできる XmlDictionaryReader を作成します。 |
注釈
各オーバーロードでは、信頼されていないデータを読み取るときに、 XmlDictionaryReaderQuotas を使用してサービス拒否 (DoS) 攻撃を防ぎます。 信頼されていないデータを読み取るときにサービス拒否攻撃を防ぐために XmlDictionaryReaderQuotas を使用する方法の詳細については、「データの セキュリティに関する考慮事項」を参照してください。
CreateJsonReader(Byte[], XmlDictionaryReaderQuotas)
JavaScript Object Notation (JSON) でエンコードされたバッファーを XML Infoset にマップできる XmlDictionaryReader を作成します。
public:
static System::Xml::XmlDictionaryReader ^ CreateJsonReader(cli::array <System::Byte> ^ buffer, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateJsonReader(byte[] buffer, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateJsonReader : byte[] * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateJsonReader (buffer As Byte(), quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
パラメーター
- quotas
- XmlDictionaryReaderQuotas
XmlDictionaryReaderQuotas信頼されていないデータを読み取るときにサービス拒否攻撃を防ぐために使用されます。
返品
JavaScript Object Notation (JSON) データを処理できる XmlDictionaryReader 。
注釈
このオーバーロードは、 Encoding パラメーターを受け取りません。 文字エンコード (UTF-8、Unicode、または Big-Endian Unicode) は、データの読み取り時に自動検出されます。
信頼されていないデータを読み取るときにサービス拒否攻撃を防ぐために XmlDictionaryReaderQuotas を使用する方法の詳細については、「データの セキュリティに関する考慮事項」を参照してください。
適用対象
CreateJsonReader(Stream, XmlDictionaryReaderQuotas)
JavaScript Object Notation (JSON) でエンコードされたストリームを XML Infoset にマップできる XmlDictionaryReader を作成します。
public:
static System::Xml::XmlDictionaryReader ^ CreateJsonReader(System::IO::Stream ^ stream, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateJsonReader(System.IO.Stream stream, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateJsonReader : System.IO.Stream * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateJsonReader (stream As Stream, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
パラメーター
- quotas
- XmlDictionaryReaderQuotas
XmlDictionaryReaderQuotas信頼されていないデータを読み取るときにサービス拒否攻撃を防ぐために使用されます。
返品
JavaScript Object Notation (JSON) を読み取ることができる XmlDictionaryReader 。
注釈
このオーバーロードは、 Encoding パラメーターを受け取りません。 文字エンコード (UTF-8、Unicode、または Big-Endian Unicode) は、データの読み取り時に自動検出されます。
信頼されていないデータを読み取るときにサービス拒否攻撃を防ぐために XmlDictionaryReaderQuotas を使用する方法の詳細については、「データの セキュリティに関する考慮事項」を参照してください。
適用対象
CreateJsonReader(Byte[], Int32, Int32, XmlDictionaryReaderQuotas)
指定したサイズとオフセットの JavaScript Object Notation (JSON) でエンコードされたバッファーを XML Infoset にマップできる XmlDictionaryReader を作成します。
public:
static System::Xml::XmlDictionaryReader ^ CreateJsonReader(cli::array <System::Byte> ^ buffer, int offset, int count, System::Xml::XmlDictionaryReaderQuotas ^ quotas);
public static System.Xml.XmlDictionaryReader CreateJsonReader(byte[] buffer, int offset, int count, System.Xml.XmlDictionaryReaderQuotas quotas);
static member CreateJsonReader : byte[] * int * int * System.Xml.XmlDictionaryReaderQuotas -> System.Xml.XmlDictionaryReader
Public Shared Function CreateJsonReader (buffer As Byte(), offset As Integer, count As Integer, quotas As XmlDictionaryReaderQuotas) As XmlDictionaryReader
パラメーター
- offset
- Int32
bufferで読み取る開始位置。
- count
- Int32
bufferから読み取ることができるバイト数。
- quotas
- XmlDictionaryReaderQuotas
XmlDictionaryReaderQuotas信頼されていないデータを読み取るときにサービス拒否攻撃を防ぐために使用されます。
返品
JavaScript Object Notation (JSON) を読み取ることができる XmlDictionaryReader 。
注釈
このオーバーロードは、 Encoding パラメーターを受け取りません。 文字エンコード (UTF-8、Unicode、または Big-Endian Unicode) は、データの読み取り時に自動検出されます。
信頼されていないデータを読み取るときにサービス拒否攻撃を防ぐために XmlDictionaryReaderQuotas を使用する方法の詳細については、「データの セキュリティに関する考慮事項」を参照してください。
適用対象
CreateJsonReader(Stream, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)
指定したサイズとオフセットの JavaScript Object Notation (JSON) でエンコードされたストリームを XML Infoset にマップできる XmlDictionaryReader を作成します。
public:
static System::Xml::XmlDictionaryReader ^ CreateJsonReader(System::IO::Stream ^ stream, System::Text::Encoding ^ encoding, System::Xml::XmlDictionaryReaderQuotas ^ quotas, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
public static System.Xml.XmlDictionaryReader CreateJsonReader(System.IO.Stream stream, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.OnXmlDictionaryReaderClose onClose);
static member CreateJsonReader : System.IO.Stream * System.Text.Encoding * System.Xml.XmlDictionaryReaderQuotas * System.Xml.OnXmlDictionaryReaderClose -> System.Xml.XmlDictionaryReader
Public Shared Function CreateJsonReader (stream As Stream, encoding As Encoding, quotas As XmlDictionaryReaderQuotas, onClose As OnXmlDictionaryReaderClose) As XmlDictionaryReader
パラメーター
- quotas
- XmlDictionaryReaderQuotas
XmlDictionaryReaderQuotas信頼されていないデータを読み取るときにサービス拒否攻撃を防ぐために使用されます。
- onClose
- OnXmlDictionaryReaderClose
リーダーが閉じられたときに呼び出す OnXmlDictionaryReaderClose デリゲート。
返品
JavaScript Object Notation (JSON) を読み取ることができる XmlDictionaryReader 。
注釈
信頼されていないデータを読み取るときにサービス拒否攻撃を防ぐために XmlDictionaryReaderQuotas を使用する方法の詳細については、「データの セキュリティに関する考慮事項」を参照してください。
適用対象
CreateJsonReader(Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)
指定したサイズとオフセットと文字エンコードを使用して、JavaScript Object Notation (JSON) でエンコードされたバッファーを XML Infoset にマップできる XmlDictionaryReader を作成します。
public:
static System::Xml::XmlDictionaryReader ^ CreateJsonReader(cli::array <System::Byte> ^ buffer, int offset, int count, System::Text::Encoding ^ encoding, System::Xml::XmlDictionaryReaderQuotas ^ quotas, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
public static System.Xml.XmlDictionaryReader CreateJsonReader(byte[] buffer, int offset, int count, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas, System.Xml.OnXmlDictionaryReaderClose onClose);
static member CreateJsonReader : byte[] * int * int * System.Text.Encoding * System.Xml.XmlDictionaryReaderQuotas * System.Xml.OnXmlDictionaryReaderClose -> System.Xml.XmlDictionaryReader
Public Shared Function CreateJsonReader (buffer As Byte(), offset As Integer, count As Integer, encoding As Encoding, quotas As XmlDictionaryReaderQuotas, onClose As OnXmlDictionaryReaderClose) As XmlDictionaryReader
パラメーター
- offset
- Int32
bufferで読み取る開始位置。
- count
- Int32
bufferから読み取ることができるバイト数。
- quotas
- XmlDictionaryReaderQuotas
XmlDictionaryReaderQuotas信頼されていないデータを読み取るときにサービス拒否攻撃を防ぐために使用されます。
- onClose
- OnXmlDictionaryReaderClose
リーダーが閉じられたときに呼び出す OnXmlDictionaryReaderClose デリゲート。 既定値は null です。
返品
JavaScript Object Notation (JSON) を読み取ることができる XmlDictionaryReader 。
注釈
信頼されていないデータを読み取るときにサービス拒否攻撃を防ぐために XmlDictionaryReaderQuotas を使用する方法の詳細については、「データの セキュリティに関する考慮事項」を参照してください。