UTF32Encodingとは? わかりやすく解説

UTF32Encoding クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

Unicode 文字UTF-32 エンコーディング表します

名前空間: System.Text
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<SerializableAttribute> _
Public NotInheritable Class
 UTF32Encoding
    Inherits Encoding
Dim instance As UTF32Encoding
[SerializableAttribute] 
public sealed class UTF32Encoding : Encoding
[SerializableAttribute] 
public ref class UTF32Encoding sealed : public
 Encoding
/** @attribute SerializableAttribute() */ 
public final class UTF32Encoding extends Encoding
SerializableAttribute 
public final class UTF32Encoding extends
 Encoding
解説解説

エンコーディングは、Unicode 文字セットバイト シーケンス変換するプロセスです。デコードはその逆になりますエンコードされたバイト シーケンスUnicode 文字セット変換するプロセスです。

Unicode Standard では、サポートされすべてのスクリプトについて、各文字コード ポイント (数値) を割り当ててます。コード ポイントエンコードには UTF (Unicode Transformation Format) が使用されます。Unicode Standard バージョン 3.2 では、次の UTF使用されています。

GetByteCount メソッドは、Unicode 文字セットエンコードした結果得られるバイト数を確認します実際エンコードは、GetBytes メソッドによって実行されます。

同様に、GetCharCount メソッドは、バイト シーケンスデコードした結果得られる文字数確認します実際デコードは、GetChars メソッドと GetString メソッドによって実行されます。

エンコーダでは、最上位バイト先頭配置されるビッグ エンディアン バイト順、または最下位バイト先頭配置されるリトル エンディアン バイト順が使用されます。たとえば、Latin大文字 A (コード ポイント U+0041) は次のように 16 進数シリアル化されます

UTF32Encoding は、オプションプリアンブル提供しますプリアンブルは、エンコーディング プロセス得られたバイト シーケンス先頭付加できるバイト配列です。プリアンブルバイト順マーク (コード ポイント U+FEFF) が含まれる場合デコーダバイト順および変換形式 (UTF) を判断できますUnicode バイト順マークは、次のように 16 進数シリアル化されます

通常ネイティブバイト順で Unicode 文字格納した方が効率的です。たとえば、Intelコンピュータなど、リトル エンディアンプラットフォームでは、リトル エンディアンバイト順を使用した方が効率的です。

GetPreamble メソッドは、バイト順マーク格納するバイト配列返します。このバイト配列エンコード済みストリーム前に付加されていると、使用されているエンコーディング形式デコーダ識別するのに役立ちます

Unicode エンコーディングバイト順、およびバイト順マーク詳細については、www.unicode.org の「Unicode Standard」を参照してください

メモメモ

エラー検出有効にしてクラス インスタンス安全性向上させるには、throwOnInvalidCharacters パラメータ受け取る UTF32Encoding コンストラクタ使用し、このパラメータtrue設定しますエラー検出有効にすると、メソッドは、無効な文字シーケンスバイト シーケンス検出したときに、ArgumentException をスローます。エラー検出無効にすると、例外スローされず、無効なシーケンス全般に無視されます。

UTF32Encoding は、Windows コード ページ 12000 (リトル エンディアン バイト順) と 12001 (ビッグ エンディアン バイト順) に対応してます。

使用例使用例

次のコード例は、エラー検出有効にした場合無効にした場合UTF32Encoding動作示してます。

Imports System
Imports System.Text
Imports Microsoft.VisualBasic

Public Class SamplesUTF32Encoding   

   Public Shared Sub Main()

      ' Create an instance of UTF32Encoding using little-endian byte
 order.
      ' This will be used for encoding.
      Dim u32LE As New UTF32Encoding(False,
 True)

      ' Create two instances of UTF32Encoding using big-endian byte
 order: one with error detection and one without.
      ' These will be used for decoding.
      Dim u32withED As New
 UTF32Encoding(True, True, True)
      Dim u32noED As New
 UTF32Encoding(True, True, False)

      ' Create byte arrays from the same string containing the following
 characters:
      '    Latin Small Letter Z (U+007A)
      '    Latin Small Letter A (U+0061)
      '    Combining Breve (U+0306)
      '    Latin Small Letter AE With Acute (U+01FD)
      '    Greek Small Letter Beta (U+03B2)
      '    a high-surrogate value (U+D8FF)
      '    a low-surrogate value (U+DCFF)
      Dim myStr As String
 = "za" & ChrW(&H0306) & ChrW(&H01FD)
 & ChrW(&H03B2) & ChrW(&HD8FF) & ChrW(&HDCFF)

      ' Encode the string using little-endian byte order.
      Dim myBytes(u32LE.GetByteCount(myStr)) As
 Byte
      u32LE.GetBytes(myStr, 0, myStr.Length, myBytes, 0)

      ' Decode the byte array with error detection.
      Console.WriteLine("Decoding with error detection:")
      PrintDecodedString(myBytes, u32withED)

      ' Decode the byte array without error detection.
      Console.WriteLine("Decoding without error detection:")
      PrintDecodedString(myBytes, u32noED)

   End Sub 'Main


   ' Decode the bytes and display the string.
   Public Shared Sub PrintDecodedString(bytes()
 As Byte, enc As Encoding)

      Try
         Console.WriteLine("   Decoded string: {0}",
 enc.GetString(bytes, 0, bytes.Length))
      Catch e As System.ArgumentException
         Console.WriteLine(e.ToString())
      End Try

      Console.WriteLine()

   End Sub 'PrintDecodedString
 

End Class 'SamplesUTF32Encoding

using System;
using System.Text;

public class SamplesUTF32Encoding  {

   public static void Main()
  {

      // Create an instance of UTF32Encoding using little-endian byte
 order.
      // This will be used for encoding.
      UTF32Encoding u32LE     = new UTF32Encoding( false,
 true );

      // Create two instances of UTF32Encoding using big-endian byte
 order: one with error detection and one without.
      // These will be used for decoding.
      UTF32Encoding u32withED = new UTF32Encoding( true,
 true, true );
      UTF32Encoding u32noED   = new UTF32Encoding( true,
 true, false );

      // Create byte arrays from the same string containing the following
 characters:
      //    Latin Small Letter Z (U+007A)
      //    Latin Small Letter A (U+0061)
      //    Combining Breve (U+0306)
      //    Latin Small Letter AE With Acute (U+01FD)
      //    Greek Small Letter Beta (U+03B2)
      //    a high-surrogate value (U+D8FF)
      //    a low-surrogate value (U+DCFF)
      String myStr = "za\u0306\u01FD\u03B2\uD8FF\uDCFF";

      // Encode the string using little-endian byte order.
      byte[] myBytes = new byte[u32LE.GetByteCount( myStr )];
      u32LE.GetBytes( myStr, 0, myStr.Length, myBytes, 0 );

      // Decode the byte array with error detection.
      Console.WriteLine( "Decoding with error detection:" );
      PrintDecodedString( myBytes, u32withED );

      // Decode the byte array without error detection.
      Console.WriteLine( "Decoding without error detection:" );
      PrintDecodedString( myBytes, u32noED );

   }


   // Decode the bytes and display the string.
   public static void PrintDecodedString(
 byte[] bytes, Encoding enc )  {

      try  {
         Console.WriteLine( "   Decoded string: {0}",
 enc.GetString( bytes, 0, bytes.Length ) );
      }
      catch ( System.ArgumentException e )  {
         Console.WriteLine( e.ToString() );
      }

      Console.WriteLine();

   }

}

using namespace System;
using namespace System::Text;
void PrintDecodedString( array<Byte>^bytes, Encoding^ enc
 );
int main()
{
   
   // Create an instance of UTF32Encoding using little-endian byte order.
   // This will be used for encoding.
   UTF32Encoding^ u32LE = gcnew UTF32Encoding( false,true
 );
   
   // Create two instances of UTF32Encoding using big-endian byte order:
 one with error detection and one without.
   // These will be used for decoding.
   UTF32Encoding^ u32withED = gcnew UTF32Encoding( true,true,true
 );
   UTF32Encoding^ u32noED = gcnew UTF32Encoding( true,true,false
 );
   
   // Create byte arrays from the same string containing the following
 characters:
   //    Latin Small Letter Z (U+007A)
   //    Latin Small Letter A (U+0061)
   //    Combining Breve (U+0306)
   //    Latin Small Letter AE With Acute (U+01FD)
   //    Greek Small Letter Beta (U+03B2)
   String^ myStr = L"za\u0306\u01FD\u03B2\xD8FF\xDCFF";
   
   // Encode the string using little-endian byte order.
   array<Byte>^myBytes = gcnew array<Byte>(u32LE->GetByteCount( myStr
 ));
   u32LE->GetBytes( myStr, 0, myStr->Length, myBytes, 0 );
   
   // Decode the byte array with error detection.
   Console::WriteLine( "Decoding with error detection:" );
   PrintDecodedString( myBytes, u32withED );
   
   // Decode the byte array without error detection.
   Console::WriteLine( "Decoding without error detection:" );
   PrintDecodedString( myBytes, u32noED );
}


// Decode the bytes and display the string.
void PrintDecodedString( array<Byte>^bytes, Encoding^ enc
 )
{
   try
   {
      Console::WriteLine( "   Decoded string: {0}",
 enc->GetString( bytes, 0, bytes->Length ) );
   }
   catch ( System::ArgumentException^ e ) 
   {
      Console::WriteLine( e );
   }

   Console::WriteLine();
}

import System.*;
import System.Text.*;

public class SamplesUTF32Encoding
{
    public static void main(String[]
 args)
    {
        // Create an instance of UTF32Encoding using little-endian byte
 order.
        // This will be used for encoding.
        UTF32Encoding u32LE =  new UTF32Encoding(false,
 true);

        // Create two instances of UTF32Encoding using big-endian byte
 order: 
        // one with error detection and one without.
        // These will be used for decoding.
        UTF32Encoding u32withED =  new UTF32Encoding(true,
 true, true);
        UTF32Encoding u32noED =  new UTF32Encoding(true,
 true, false);

        // Create byte arrays from the same string containing the 
        // following characters:
        //    Latin Small Letter Z (U+007A)
        //    Latin Small Letter A (U+0061)
        //    Combining Breve (U+0306)
        //    Latin Small Letter AE With Acute (U+01FD)
        //    Greek Small Letter Beta (U+03B2)
        //    a high-surrogate value (U+D8FF)
        //    a low-surrogate value (U+DCFF)
        String myStr = "za\u0306\u01FD\u03B2\uD8FF\uDCFF";

        // Encode the string using little-endian byte order.
        ubyte myBytes[] = new ubyte[u32LE.GetByteCount(myStr)];
        u32LE.GetBytes(myStr, 0, myStr.get_Length(), myBytes, 0);

        // Decode the byte array with error detection.
        Console.WriteLine("Decoding with error detection:");
        PrintDecodedString(myBytes, u32withED);

        // Decode the byte array without error detection.
        Console.WriteLine("Decoding without error detection:");
        PrintDecodedString(myBytes, u32noED);
    } //main

    // Decode the bytes and display the string.
    public static void PrintDecodedString(ubyte
 bytes[], Encoding enc) 
    {
        try {
            Console.WriteLine("   Decoded string: {0}"
,
                enc.GetString(bytes, 0, bytes.length));
        }
        catch(System.ArgumentException e) {
            Console.WriteLine(e.ToString());
        }
        Console.WriteLine();
    } //PrintDecodedString
} //SamplesUTF32Encoding
継承階層継承階層
System.Object
   System.Text.Encoding
    System.Text.UTF32Encoding
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
UTF32Encoding メンバ
System.Text 名前空間
Encoding クラス
Encoder クラス
Decoder クラス
UTF8Encoding
UTF7Encoding
ASCIIEncoding クラス
UnicodeEncoding クラス
System.Globalization.UnicodeCategory
System.Globalization.CharUnicodeInfo

UTF32Encoding コンストラクタ ()

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

UTF32Encoding クラス新しインスタンス初期化します。

名前空間: System.Text
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

public UTF32Encoding ()
public:
UTF32Encoding ()
public UTF32Encoding ()
public function UTF32Encoding ()
解説解説

このコンストラクタは、リトル エンディアン バイト順を使用しUnicode バイト順マーク付加し無効なエンコーディング検出したときに例外スローしないインスタンス作成します

注意に関するメモ注意

セキュリティ上の理由から、throwOnInvalidCharacters パラメータ受け取コンストラクタ使用して、このパラメータtrue設定することにより、エラー検出有効にすることをお勧めます。

エンコーダでは、最上位バイト先頭配置されるビッグ エンディアン バイト順、または最下位バイト先頭配置されるリトル エンディアン バイト順が使用されます。たとえば、Latin大文字 A (コード ポイント U+0041) は次のように 16 進数シリアル化されます

UTF32Encoding は、オプションプリアンブル提供しますプリアンブルは、エンコーディング プロセス得られたバイト シーケンス先頭付加できるバイト配列です。プリアンブルバイト順マーク (コード ポイント U+FEFF) が含まれる場合デコーダバイト順および変換形式 (UTF) を判断できますUnicode バイト順マークは、次のように 16 進数シリアル化されます

通常ネイティブバイト順で Unicode 文字格納した方が効率的です。たとえば、Intelコンピュータなど、リトル エンディアンプラットフォームでは、リトル エンディアンバイト順を使用した方が効率的です。

バイト順とバイト順マーク詳細については、www.unicode.org の「Unicode Standard」を参照してください

使用例使用例

次のコード例は、さまざまな UTF32Encoding インスタンスバイト順マーク取得して表示します

Imports System
Imports System.Text

Public Class SamplesUTF32Encoding   

   Public Shared Sub Main()

      ' Create instances of UTF32Encoding, with the byte order mark
 and without.
      Dim u32LeNone As New
 UTF32Encoding()
      Dim u32BeNone As New
 UTF32Encoding(True, False)
      Dim u32LeBom As New
 UTF32Encoding(False, True)
      Dim u32BeBom As New
 UTF32Encoding(True, True)

      ' Display the preamble for each instance.
      PrintHexBytes(u32LeNone.GetPreamble())
      PrintHexBytes(u32BeNone.GetPreamble())
      PrintHexBytes(u32LeBom.GetPreamble())
      PrintHexBytes(u32BeBom.GetPreamble())

   End Sub 'Main


   Public Shared Sub PrintHexBytes(bytes()
 As Byte)

      If bytes Is Nothing
 OrElse bytes.Length = 0 Then
         Console.WriteLine("<none>")
      Else
         Dim i As Integer
         For i = 0 To bytes.Length - 1
            Console.Write("{0:X2} ", bytes(i))
         Next i
         Console.WriteLine()
      End If

   End Sub 'PrintHexBytes 

End Class 'SamplesUTF32Encoding


'This code produces the following output.
'
'&lt;none&gt;
'&lt;none&gt;
'FF FE 00 00
'00 00 FE FF

using System;
using System.Text;

public class SamplesUTF32Encoding  {

   public static void Main()
  {

      // Create instances of UTF32Encoding, with the byte order mark
 and without.
      UTF32Encoding u32LeNone = new UTF32Encoding();
      UTF32Encoding u32BeNone = new UTF32Encoding( true,
 false );
      UTF32Encoding u32LeBom  = new UTF32Encoding( false,
 true );
      UTF32Encoding u32BeBom  = new UTF32Encoding( true,
 true );

      // Display the preamble for each instance.
      PrintHexBytes( u32LeNone.GetPreamble() );
      PrintHexBytes( u32BeNone.GetPreamble() );
      PrintHexBytes( u32LeBom.GetPreamble() );
      PrintHexBytes( u32BeBom.GetPreamble() );

   }

   public static void PrintHexBytes(
 byte[] bytes )  {

      if (( bytes == null ) || ( bytes.Length
 == 0 ))
         Console.WriteLine( "<none>" );
      else  {
         for ( int i = 0; i < bytes.Length;
 i++ )
            Console.Write( "{0:X2} ", bytes[i] );
         Console.WriteLine();
      }

   }

}


/* 
This code produces the following output.

&lt;none&gt;
&lt;none&gt;
FF FE 00 00
00 00 FE FF

*/

using namespace System;
using namespace System::Text;
void PrintHexBytes( array<Byte>^bytes );
int main()
{
   
   // Create instances of UTF32Encoding, with the byte order mark and
 without.
   UTF32Encoding ^ u32LeNone = gcnew UTF32Encoding;
   UTF32Encoding ^ u32BeNone = gcnew UTF32Encoding( true,false
 );
   UTF32Encoding ^ u32LeBom = gcnew UTF32Encoding( false,true
 );
   UTF32Encoding ^ u32BeBom = gcnew UTF32Encoding( true,true
 );
   
   // Display the preamble for each instance.
   PrintHexBytes( u32LeNone->GetPreamble() );
   PrintHexBytes( u32BeNone->GetPreamble() );
   PrintHexBytes( u32LeBom->GetPreamble() );
   PrintHexBytes( u32BeBom->GetPreamble() );
}

void PrintHexBytes( array<Byte>^bytes )
{
   if ( (bytes == nullptr) || (bytes->Length == 0) )
      Console::WriteLine( "<none>" );
   else
   {
      for ( int i = 0; i < bytes->Length;
 i++ )
         Console::Write( "{0:X2} ", bytes[ i ] );
      Console::WriteLine();
   }
}

/* 
This code produces the following output.

&lt;none&gt;
&lt;none&gt;
FF FE 00 00
00 00 FE FF

*/
import System.*;
import System.Text.*;

public class SamplesUTF32Encoding
{
    public static void main(String[]
 args)
    {
        // Create instances of UTF32Encoding, with the byte 
        // order mark and without.
        UTF32Encoding u32LeNone = new UTF32Encoding();
        UTF32Encoding u32BeNone = new UTF32Encoding(true,
 false);
        UTF32Encoding u32LeBom = new UTF32Encoding(false,
 true);
        UTF32Encoding u32BeBom = new UTF32Encoding(true,
 true);

        // Display the preamble for each instance.
        PrintHexBytes(u32LeNone.GetPreamble());
        PrintHexBytes(u32BeNone.GetPreamble());
        PrintHexBytes(u32LeBom.GetPreamble());
        PrintHexBytes(u32BeBom.GetPreamble());
    } //main
   
    public static void PrintHexBytes(ubyte
 bytes[])
    {
        if(bytes == null || bytes.length ==
 0) {
            Console.WriteLine("<none>");
        }
        else {
            for(int i = 0; i < bytes.length;
 i++) {
                Console.Write("{0:X2} ", 
                    ((System.Byte)bytes[i]).ToString("X2"));
            }
            Console.WriteLine();
        }
    } //PrintHexBytes
} //SamplesUTF32Encoding

/* 
This code produces the following output.

FF FE 00 00
<none>
FF FE 00 00
00 00 FE FF

*/

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

UTF32Encoding コンストラクタ (Boolean, Boolean, Boolean)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

UTF32Encoding クラス新しインスタンス初期化します。パラメータでは、ビッグ エンディアン バイト順を使用するかどうかUnicode バイト順マーク付加するかどうか、および無効なエンコーディング検出したときに例外スローするかどうか指定します

名前空間: System.Text
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

解説解説

throwOnInvalidCharacterstrue場合無効なバイト シーケンス検出したメソッドは System.ArgumentException をスローます。それ以外場合は、例外スローせず、無効なシーケンス無視します。

注意に関するメモ注意

セキュリティ上の理由から、このコンストラクタ使用して UTF32Encoding クラスインスタンス作成しthrowOnInvalidCharacterstrue設定することでエラー検出オンにすることをお勧めます。

エンコーダでは、最上位バイト先頭配置されるビッグ エンディアン バイト順、または最下位バイト先頭配置されるリトル エンディアン バイト順が使用されます。たとえば、Latin大文字 A (コード ポイント U+0041) は次のように 16 進数シリアル化されます

UTF32Encoding は、オプションプリアンブル提供しますプリアンブルは、エンコーディング プロセス得られたバイト シーケンス先頭付加できるバイト配列です。プリアンブルバイト順マーク (コード ポイント U+FEFF) が含まれる場合デコーダバイト順および変換形式 (UTF) を判断できますUnicode バイト順マークは、次のように 16 進数シリアル化されます

通常ネイティブバイト順で Unicode 文字格納した方が効率的です。たとえば、Intelコンピュータなど、リトル エンディアンプラットフォームでは、リトル エンディアンバイト順を使用した方が効率的です。

バイト順とバイト順マーク詳細については、www.unicode.org の「Unicode Standard」を参照してください

使用例使用例

次のコード例は、エラー検出有効にした場合無効にした場合UTF32Encoding動作示してます。

Imports System
Imports System.Text
Imports Microsoft.VisualBasic

Public Class SamplesUTF32Encoding   

   Public Shared Sub Main()

      ' Create an instance of UTF32Encoding using little-endian byte
 order.
      ' This will be used for encoding.
      Dim u32LE As New UTF32Encoding(False,
 True)

      ' Create two instances of UTF32Encoding using big-endian byte
 order: one with error detection and one without.
      ' These will be used for decoding.
      Dim u32withED As New
 UTF32Encoding(True, True, True)
      Dim u32noED As New
 UTF32Encoding(True, True, False)

      ' Create byte arrays from the same string containing the following
 characters:
      '    Latin Small Letter Z (U+007A)
      '    Latin Small Letter A (U+0061)
      '    Combining Breve (U+0306)
      '    Latin Small Letter AE With Acute (U+01FD)
      '    Greek Small Letter Beta (U+03B2)
      '    a high-surrogate value (U+D8FF)
      '    a low-surrogate value (U+DCFF)
      Dim myStr As String
 = "za" & ChrW(&H0306) & ChrW(&H01FD)
 & ChrW(&H03B2) & ChrW(&HD8FF) & ChrW(&HDCFF)

      ' Encode the string using little-endian byte order.
      Dim myBytes(u32LE.GetByteCount(myStr)) As
 Byte
      u32LE.GetBytes(myStr, 0, myStr.Length, myBytes, 0)

      ' Decode the byte array with error detection.
      Console.WriteLine("Decoding with error detection:")
      PrintDecodedString(myBytes, u32withED)

      ' Decode the byte array without error detection.
      Console.WriteLine("Decoding without error detection:")
      PrintDecodedString(myBytes, u32noED)

   End Sub 'Main


   ' Decode the bytes and display the string.
   Public Shared Sub PrintDecodedString(bytes()
 As Byte, enc As Encoding)

      Try
         Console.WriteLine("   Decoded string: {0}",
 enc.GetString(bytes, 0, bytes.Length))
      Catch e As System.ArgumentException
         Console.WriteLine(e.ToString())
      End Try

      Console.WriteLine()

   End Sub 'PrintDecodedString
 

End Class 'SamplesUTF32Encoding

using System;
using System.Text;

public class SamplesUTF32Encoding  {

   public static void Main()
  {

      // Create an instance of UTF32Encoding using little-endian byte
 order.
      // This will be used for encoding.
      UTF32Encoding u32LE     = new UTF32Encoding( false,
 true );

      // Create two instances of UTF32Encoding using big-endian byte
 order: one with error detection and one without.
      // These will be used for decoding.
      UTF32Encoding u32withED = new UTF32Encoding( true,
 true, true );
      UTF32Encoding u32noED   = new UTF32Encoding( true,
 true, false );

      // Create byte arrays from the same string containing the following
 characters:
      //    Latin Small Letter Z (U+007A)
      //    Latin Small Letter A (U+0061)
      //    Combining Breve (U+0306)
      //    Latin Small Letter AE With Acute (U+01FD)
      //    Greek Small Letter Beta (U+03B2)
      //    a high-surrogate value (U+D8FF)
      //    a low-surrogate value (U+DCFF)
      String myStr = "za\u0306\u01FD\u03B2\uD8FF\uDCFF";

      // Encode the string using little-endian byte order.
      byte[] myBytes = new byte[u32LE.GetByteCount( myStr )];
      u32LE.GetBytes( myStr, 0, myStr.Length, myBytes, 0 );

      // Decode the byte array with error detection.
      Console.WriteLine( "Decoding with error detection:" );
      PrintDecodedString( myBytes, u32withED );

      // Decode the byte array without error detection.
      Console.WriteLine( "Decoding without error detection:" );
      PrintDecodedString( myBytes, u32noED );

   }


   // Decode the bytes and display the string.
   public static void PrintDecodedString(
 byte[] bytes, Encoding enc )  {

      try  {
         Console.WriteLine( "   Decoded string: {0}",
 enc.GetString( bytes, 0, bytes.Length ) );
      }
      catch ( System.ArgumentException e )  {
         Console.WriteLine( e.ToString() );
      }

      Console.WriteLine();

   }

}

using namespace System;
using namespace System::Text;
void PrintDecodedString( array<Byte>^bytes, Encoding^ enc
 );
int main()
{
   
   // Create an instance of UTF32Encoding using little-endian byte order.
   // This will be used for encoding.
   UTF32Encoding^ u32LE = gcnew UTF32Encoding( false,true
 );
   
   // Create two instances of UTF32Encoding using big-endian byte order:
 one with error detection and one without.
   // These will be used for decoding.
   UTF32Encoding^ u32withED = gcnew UTF32Encoding( true,true,true
 );
   UTF32Encoding^ u32noED = gcnew UTF32Encoding( true,true,false
 );
   
   // Create byte arrays from the same string containing the following
 characters:
   //    Latin Small Letter Z (U+007A)
   //    Latin Small Letter A (U+0061)
   //    Combining Breve (U+0306)
   //    Latin Small Letter AE With Acute (U+01FD)
   //    Greek Small Letter Beta (U+03B2)
   String^ myStr = L"za\u0306\u01FD\u03B2\xD8FF\xDCFF";
   
   // Encode the string using little-endian byte order.
   array<Byte>^myBytes = gcnew array<Byte>(u32LE->GetByteCount( myStr
 ));
   u32LE->GetBytes( myStr, 0, myStr->Length, myBytes, 0 );
   
   // Decode the byte array with error detection.
   Console::WriteLine( "Decoding with error detection:" );
   PrintDecodedString( myBytes, u32withED );
   
   // Decode the byte array without error detection.
   Console::WriteLine( "Decoding without error detection:" );
   PrintDecodedString( myBytes, u32noED );
}


// Decode the bytes and display the string.
void PrintDecodedString( array<Byte>^bytes, Encoding^ enc
 )
{
   try
   {
      Console::WriteLine( "   Decoded string: {0}",
 enc->GetString( bytes, 0, bytes->Length ) );
   }
   catch ( System::ArgumentException^ e ) 
   {
      Console::WriteLine( e );
   }

   Console::WriteLine();
}

import System.*;
import System.Text.*;

public class SamplesUTF32Encoding
{
    public static void main(String[]
 args)
    {
        // Create an instance of UTF32Encoding using little-endian byte
 order.
        // This will be used for encoding.
        UTF32Encoding u32LE =  new UTF32Encoding(false,
 true);

        // Create two instances of UTF32Encoding using big-endian byte
 order: 
        // one with error detection and one without.
        // These will be used for decoding.
        UTF32Encoding u32withED =  new UTF32Encoding(true,
 true, true);
        UTF32Encoding u32noED =  new UTF32Encoding(true,
 true, false);

        // Create byte arrays from the same string containing the 
        // following characters:
        //    Latin Small Letter Z (U+007A)
        //    Latin Small Letter A (U+0061)
        //    Combining Breve (U+0306)
        //    Latin Small Letter AE With Acute (U+01FD)
        //    Greek Small Letter Beta (U+03B2)
        //    a high-surrogate value (U+D8FF)
        //    a low-surrogate value (U+DCFF)
        String myStr = "za\u0306\u01FD\u03B2\uD8FF\uDCFF";

        // Encode the string using little-endian byte order.
        ubyte myBytes[] = new ubyte[u32LE.GetByteCount(myStr)];
        u32LE.GetBytes(myStr, 0, myStr.get_Length(), myBytes, 0);

        // Decode the byte array with error detection.
        Console.WriteLine("Decoding with error detection:");
        PrintDecodedString(myBytes, u32withED);

        // Decode the byte array without error detection.
        Console.WriteLine("Decoding without error detection:");
        PrintDecodedString(myBytes, u32noED);
    } //main

    // Decode the bytes and display the string.
    public static void PrintDecodedString(ubyte
 bytes[], Encoding enc) 
    {
        try {
            Console.WriteLine("   Decoded string: {0}"
,
                enc.GetString(bytes, 0, bytes.length));
        }
        catch(System.ArgumentException e) {
            Console.WriteLine(e.ToString());
        }
        Console.WriteLine();
    } //PrintDecodedString
} //SamplesUTF32Encoding
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
UTF32Encoding クラス
UTF32Encoding メンバ
System.Text 名前空間
GetPreamble

UTF32Encoding コンストラクタ (Boolean, Boolean)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

UTF32Encoding クラス新しインスタンス初期化します。パラメータでは、ビッグ エンディアン バイト順を使用するかどうか、および Unicode バイト順マーク付加するかどうか指定します

名前空間: System.Text
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

解説解説

このコンストラクタは、無効なエンコーディング検出したときに例外スローしないインスタンス作成します

注意に関するメモ注意

セキュリティ上の理由から、throwOnInvalidCharacters パラメータ受け取コンストラクタ使用して、このパラメータtrue設定することにより、エラー検出有効にすることをお勧めます。

エンコーダでは、最上位バイト先頭配置されるビッグ エンディアン バイト順、または最下位バイト先頭配置されるリトル エンディアン バイト順が使用されます。たとえば、Latin大文字 A (コード ポイント U+0041) は次のように 16 進数シリアル化されます

UTF32Encoding は、オプションプリアンブル提供しますプリアンブルは、エンコーディング プロセス得られたバイト シーケンス先頭付加できるバイト配列です。プリアンブルバイト順マーク (コード ポイント U+FEFF) が含まれる場合デコーダバイト順および変換形式 (UTF) を判断できますUnicode バイト順マークは、次のように 16 進数シリアル化されます

通常ネイティブバイト順で Unicode 文字格納した方が効率的です。たとえば、Intelコンピュータなど、リトル エンディアンプラットフォームでは、リトル エンディアンバイト順を使用した方が効率的です。

バイト順とバイト順マーク詳細については、www.unicode.org の「Unicode Standard」を参照してください

使用例使用例

次のコード例は、さまざまな UTF32Encoding インスタンスバイト順マーク取得して表示します

Imports System
Imports System.Text

Public Class SamplesUTF32Encoding   

   Public Shared Sub Main()

      ' Create instances of UTF32Encoding, with the byte order mark
 and without.
      Dim u32LeNone As New
 UTF32Encoding()
      Dim u32BeNone As New
 UTF32Encoding(True, False)
      Dim u32LeBom As New
 UTF32Encoding(False, True)
      Dim u32BeBom As New
 UTF32Encoding(True, True)

      ' Display the preamble for each instance.
      PrintHexBytes(u32LeNone.GetPreamble())
      PrintHexBytes(u32BeNone.GetPreamble())
      PrintHexBytes(u32LeBom.GetPreamble())
      PrintHexBytes(u32BeBom.GetPreamble())

   End Sub 'Main


   Public Shared Sub PrintHexBytes(bytes()
 As Byte)

      If bytes Is Nothing
 OrElse bytes.Length = 0 Then
         Console.WriteLine("<none>")
      Else
         Dim i As Integer
         For i = 0 To bytes.Length - 1
            Console.Write("{0:X2} ", bytes(i))
         Next i
         Console.WriteLine()
      End If

   End Sub 'PrintHexBytes 

End Class 'SamplesUTF32Encoding


'This code produces the following output.
'
'&lt;none&gt;
'&lt;none&gt;
'FF FE 00 00
'00 00 FE FF

using System;
using System.Text;

public class SamplesUTF32Encoding  {

   public static void Main()
  {

      // Create instances of UTF32Encoding, with the byte order mark
 and without.
      UTF32Encoding u32LeNone = new UTF32Encoding();
      UTF32Encoding u32BeNone = new UTF32Encoding( true,
 false );
      UTF32Encoding u32LeBom  = new UTF32Encoding( false,
 true );
      UTF32Encoding u32BeBom  = new UTF32Encoding( true,
 true );

      // Display the preamble for each instance.
      PrintHexBytes( u32LeNone.GetPreamble() );
      PrintHexBytes( u32BeNone.GetPreamble() );
      PrintHexBytes( u32LeBom.GetPreamble() );
      PrintHexBytes( u32BeBom.GetPreamble() );

   }

   public static void PrintHexBytes(
 byte[] bytes )  {

      if (( bytes == null ) || ( bytes.Length
 == 0 ))
         Console.WriteLine( "<none>" );
      else  {
         for ( int i = 0; i < bytes.Length;
 i++ )
            Console.Write( "{0:X2} ", bytes[i] );
         Console.WriteLine();
      }

   }

}


/* 
This code produces the following output.

&lt;none&gt;
&lt;none&gt;
FF FE 00 00
00 00 FE FF

*/

using namespace System;
using namespace System::Text;
void PrintHexBytes( array<Byte>^bytes );
int main()
{
   
   // Create instances of UTF32Encoding, with the byte order mark and
 without.
   UTF32Encoding ^ u32LeNone = gcnew UTF32Encoding;
   UTF32Encoding ^ u32BeNone = gcnew UTF32Encoding( true,false
 );
   UTF32Encoding ^ u32LeBom = gcnew UTF32Encoding( false,true
 );
   UTF32Encoding ^ u32BeBom = gcnew UTF32Encoding( true,true
 );
   
   // Display the preamble for each instance.
   PrintHexBytes( u32LeNone->GetPreamble() );
   PrintHexBytes( u32BeNone->GetPreamble() );
   PrintHexBytes( u32LeBom->GetPreamble() );
   PrintHexBytes( u32BeBom->GetPreamble() );
}

void PrintHexBytes( array<Byte>^bytes )
{
   if ( (bytes == nullptr) || (bytes->Length == 0) )
      Console::WriteLine( "<none>" );
   else
   {
      for ( int i = 0; i < bytes->Length;
 i++ )
         Console::Write( "{0:X2} ", bytes[ i ] );
      Console::WriteLine();
   }
}

/* 
This code produces the following output.

&lt;none&gt;
&lt;none&gt;
FF FE 00 00
00 00 FE FF

*/
import System.*;
import System.Text.*;

public class SamplesUTF32Encoding
{
    public static void main(String[]
 args)
    {
        // Create instances of UTF32Encoding, with the byte 
        // order mark and without.
        UTF32Encoding u32LeNone = new UTF32Encoding();
        UTF32Encoding u32BeNone = new UTF32Encoding(true,
 false);
        UTF32Encoding u32LeBom = new UTF32Encoding(false,
 true);
        UTF32Encoding u32BeBom = new UTF32Encoding(true,
 true);

        // Display the preamble for each instance.
        PrintHexBytes(u32LeNone.GetPreamble());
        PrintHexBytes(u32BeNone.GetPreamble());
        PrintHexBytes(u32LeBom.GetPreamble());
        PrintHexBytes(u32BeBom.GetPreamble());
    } //main
   
    public static void PrintHexBytes(ubyte
 bytes[])
    {
        if(bytes == null || bytes.length ==
 0) {
            Console.WriteLine("<none>");
        }
        else {
            for(int i = 0; i < bytes.length;
 i++) {
                Console.Write("{0:X2} ", 
                    ((System.Byte)bytes[i]).ToString("X2"));
            }
            Console.WriteLine();
        }
    } //PrintHexBytes
} //SamplesUTF32Encoding

/* 
This code produces the following output.

FF FE 00 00
<none>
FF FE 00 00
00 00 FE FF

*/

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
UTF32Encoding クラス
UTF32Encoding メンバ
System.Text 名前空間
GetPreamble

UTF32Encoding コンストラクタ


UTF32Encoding プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ ASCII  ASCII (7 ビット) 文字セットエンコーディング取得します。 ( Encoding から継承されます。)
パブリック プロパティ BigEndianUnicode  ビッグ エンディアン バイト順を使用する UTF-16 形式エンコーディング取得します。 ( Encoding から継承されます。)
パブリック プロパティ BodyName  派生クラスオーバーライドされた場合メール エージェントBody タグと共に使用できる現在のエンコーディングの名前を取得します。 ( Encoding から継承されます。)
パブリック プロパティ CodePage  派生クラスオーバーライドされた場合現在の Encodingコード ページ ID取得します。 ( Encoding から継承されます。)
パブリック プロパティ DecoderFallback  現在の Encoding オブジェクトの DecoderFallback オブジェクト取得または設定します。 ( Encoding から継承されます。)
パブリック プロパティ Default  システム現在の ANSI コード ページエンコーディング取得します。 ( Encoding から継承されます。)
パブリック プロパティ EncoderFallback  現在の Encoding オブジェクトの EncoderFallback オブジェクト取得または設定します。 ( Encoding から継承されます。)
パブリック プロパティ EncodingName  派生クラスオーバーライドされた場合現在のエンコーディングについての記述を、ユーザー判読できる形式取得します。 ( Encoding から継承されます。)
パブリック プロパティ HeaderName  派生クラスオーバーライドされた場合メール エージェント ヘッダー タグと共に使用できる現在のエンコーディングの名前を取得します。 ( Encoding から継承されます。)
パブリック プロパティ IsBrowserDisplay  派生クラスオーバーライドされた場合ブラウザ クライアント現在のエンコーディング使用してコンテンツ表示できるかどうかを示す値を取得します。 ( Encoding から継承されます。)
パブリック プロパティ IsBrowserSave  派生クラスオーバーライドされた場合ブラウザ クライアント現在のエンコーディング使用してコンテンツ保存できるかどうかを示す値を取得します。 ( Encoding から継承されます。)
パブリック プロパティ IsMailNewsDisplay  派生クラスオーバーライドされた場合メール クライアントおよびニュース クライアント現在のエンコーディング使用してコンテンツ表示できるかどうかを示す値を取得します。 ( Encoding から継承されます。)
パブリック プロパティ IsMailNewsSave  派生クラスオーバーライドされた場合メール クライアントおよびニュース クライアント現在のエンコーディング使用してコンテンツ保存できるかどうかを示す値を取得します。 ( Encoding から継承されます。)
パブリック プロパティ IsReadOnly  派生クラスオーバーライドされた場合現在のエンコーディング読み取り専用かどうかを示す値を取得します。 ( Encoding から継承されます。)
パブリック プロパティ IsSingleByte  派生クラスオーバーライドされた場合現在のエンコーディング1 バイトコード ポイント使用するかどうかを示す値を取得します。 ( Encoding から継承されます。)
パブリック プロパティ Unicode  リトル エンディアン バイト順を使用する UTF-16 形式エンコーディング取得します。 ( Encoding から継承されます。)
パブリック プロパティ UTF32  リトル エンディアン バイト順を使用する UTF-32 形式エンコーディング取得します。 ( Encoding から継承されます。)
パブリック プロパティ UTF7  UTF-7 形式エンコーディング取得します。 ( Encoding から継承されます。)
パブリック プロパティ UTF8  UTF-8 形式エンコーディング取得します。 ( Encoding から継承されます。)
パブリック プロパティ WebName  派生クラスオーバーライドされた場合現在のエンコーディングIANA (Internet Assigned Numbers Authority) に登録されている名前を取得します。 ( Encoding から継承されます。)
パブリック プロパティ WindowsCodePage  派生クラスオーバーライドされた場合現在のエンコーディングに最も厳密に対応する Windows オペレーティング システムコード ページ取得します。 ( Encoding から継承されます。)
参照参照

関連項目

UTF32Encoding クラス
System.Text 名前空間
Encoding クラス
Encoder クラス
Decoder クラス
UTF8Encoding
UTF7Encoding
ASCIIEncoding クラス
UnicodeEncoding クラス
System.Globalization.UnicodeCategory
System.Globalization.CharUnicodeInfo

UTF32Encoding メソッド


パブリック メソッドパブリック メソッド

  名前 説明
パブリック メソッド Clone  派生クラスオーバーライドされた場合現在の Encoding オブジェクト簡易コピー作成します。 ( Encoding から継承されます。)
パブリック メソッド Convert  オーバーロードされますバイト配列を、あるエンコーディングから別のエンコーディング変換します。 ( Encoding から継承されます。)
パブリック メソッド Equals オーバーロードされますオーバーライドされます。  
パブリック メソッド GetByteCount オーバーロードされます文字セットエンコードすることによって生成されるバイト数を計算します
パブリック メソッド GetBytes オーバーロードされます文字セットバイト シーケンスエンコードます。
パブリック メソッド GetCharCount オーバーロードされますバイト シーケンスデコードすることによって生成される文字数計算します
パブリック メソッド GetChars オーバーロードされますバイト シーケンス文字セットデコードます。
パブリック メソッド GetDecoder オーバーライドされますUTF-32エンコードされたバイト シーケンスUnicode 文字シーケンス変換するデコーダ取得します
パブリック メソッド GetEncoder オーバーライドされますUnicode 文字シーケンスUTF-32エンコードされたバイト シーケンス変換するエンコーダ取得します
パブリック メソッド GetEncoding  オーバーロードされます指定したコード ページエンコーディング返します。 ( Encoding から継承されます。)
パブリック メソッド GetEncodings  すべてのエンコーディング格納する配列返します。 ( Encoding から継承されます。)
パブリック メソッド GetHashCode オーバーライドされます現在のインスタンスハッシュ コード返します
パブリック メソッド GetMaxByteCount オーバーライドされます指定した文字数エンコードすることによって生成される最大バイト数を計算します
パブリック メソッド GetMaxCharCount オーバーライドされます指定したバイト数をデコードすることによって生成される最大文字数計算します
パブリック メソッド GetPreamble オーバーライドされます。 このインスタンスコンストラクタバイト順マーク付加するよう指定した場合に、UTF-32 形式エンコードされた Unicode バイト順マーク返します
パブリック メソッド GetString オーバーロードされますバイト シーケンス文字列デコードます。
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド IsAlwaysNormalized  オーバーロードされます現在のエンコーディングが常に正規化されるかどうかを示す値を取得します。 ( Encoding から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
参照参照

関連項目

UTF32Encoding クラス
System.Text 名前空間
Encoding クラス
Encoder クラス
Decoder クラス
UTF8Encoding
UTF7Encoding
ASCIIEncoding クラス
UnicodeEncoding クラス
System.Globalization.UnicodeCategory
System.Globalization.CharUnicodeInfo

UTF32Encoding メンバ

Unicode 文字UTF-32 エンコーディング表します

UTF32Encoding データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ ASCII  ASCII (7 ビット) 文字セットエンコーディング取得します。(Encoding から継承されます。)
パブリック プロパティ BigEndianUnicode  ビッグ エンディアン バイト順を使用する UTF-16 形式エンコーディング取得します。(Encoding から継承されます。)
パブリック プロパティ BodyName  派生クラスオーバーライドされた場合メール エージェントBody タグと共に使用できる現在のエンコーディングの名前を取得します。(Encoding から継承されます。)
パブリック プロパティ CodePage  派生クラスオーバーライドされた場合現在の Encodingコード ページ ID取得します。(Encoding から継承されます。)
パブリック プロパティ DecoderFallback  現在の Encoding オブジェクトの DecoderFallback オブジェクト取得または設定します。(Encoding から継承されます。)
パブリック プロパティ Default  システム現在の ANSI コード ページエンコーディング取得します。(Encoding から継承されます。)
パブリック プロパティ EncoderFallback  現在の Encoding オブジェクトの EncoderFallback オブジェクト取得または設定します。(Encoding から継承されます。)
パブリック プロパティ EncodingName  派生クラスオーバーライドされた場合現在のエンコーディングについての記述を、ユーザー判読できる形式取得します。(Encoding から継承されます。)
パブリック プロパティ HeaderName  派生クラスオーバーライドされた場合メール エージェント ヘッダー タグと共に使用できる現在のエンコーディングの名前を取得します。(Encoding から継承されます。)
パブリック プロパティ IsBrowserDisplay  派生クラスオーバーライドされた場合ブラウザ クライアント現在のエンコーディング使用してコンテンツ表示できるかどうかを示す値を取得します。(Encoding から継承されます。)
パブリック プロパティ IsBrowserSave  派生クラスオーバーライドされた場合ブラウザ クライアント現在のエンコーディング使用してコンテンツ保存できるかどうかを示す値を取得します。(Encoding から継承されます。)
パブリック プロパティ IsMailNewsDisplay  派生クラスオーバーライドされた場合メール クライアントおよびニュース クライアント現在のエンコーディング使用してコンテンツ表示できるかどうかを示す値を取得します。(Encoding から継承されます。)
パブリック プロパティ IsMailNewsSave  派生クラスオーバーライドされた場合メール クライアントおよびニュース クライアント現在のエンコーディング使用してコンテンツ保存できるかどうかを示す値を取得します。(Encoding から継承されます。)
パブリック プロパティ IsReadOnly  派生クラスオーバーライドされた場合現在のエンコーディング読み取り専用かどうかを示す値を取得します。(Encoding から継承されます。)
パブリック プロパティ IsSingleByte  派生クラスオーバーライドされた場合現在のエンコーディング1 バイトコード ポイント使用するかどうかを示す値を取得します。(Encoding から継承されます。)
パブリック プロパティ Unicode  リトル エンディアン バイト順を使用する UTF-16 形式エンコーディング取得します。(Encoding から継承されます。)
パブリック プロパティ UTF32  リトル エンディアン バイト順を使用する UTF-32 形式エンコーディング取得します。(Encoding から継承されます。)
パブリック プロパティ UTF7  UTF-7 形式エンコーディング取得します。(Encoding から継承されます。)
パブリック プロパティ UTF8  UTF-8 形式エンコーディング取得します。(Encoding から継承されます。)
パブリック プロパティ WebName  派生クラスオーバーライドされた場合現在のエンコーディングIANA (Internet Assigned Numbers Authority) に登録されている名前を取得します。(Encoding から継承されます。)
パブリック プロパティ WindowsCodePage  派生クラスオーバーライドされた場合現在のエンコーディングに最も厳密に対応する Windows オペレーティング システムコード ページ取得します。(Encoding から継承されます。)
パブリック メソッドパブリック メソッド
  名前 説明
パブリック メソッド Clone  派生クラスオーバーライドされた場合現在の Encoding オブジェクト簡易コピー作成します。 (Encoding から継承されます。)
パブリック メソッド Convert  オーバーロードされますバイト配列を、あるエンコーディングから別のエンコーディング変換します。 (Encoding から継承されます。)
パブリック メソッド Equals オーバーロードされますオーバーライドされます。  
パブリック メソッド GetByteCount オーバーロードされます文字セットエンコードすることによって生成されるバイト数を計算します
パブリック メソッド GetBytes オーバーロードされます文字セットバイト シーケンスエンコードます。
パブリック メソッド GetCharCount オーバーロードされますバイト シーケンスデコードすることによって生成される文字数計算します
パブリック メソッド GetChars オーバーロードされますバイト シーケンス文字セットデコードます。
パブリック メソッド GetDecoder オーバーライドされますUTF-32エンコードされたバイト シーケンスUnicode 文字シーケンス変換するデコーダ取得します
パブリック メソッド GetEncoder オーバーライドされますUnicode 文字シーケンスUTF-32エンコードされたバイト シーケンス変換するエンコーダ取得します
パブリック メソッド GetEncoding  オーバーロードされます指定したコード ページエンコーディング返します。 (Encoding から継承されます。)
パブリック メソッド GetEncodings  すべてのエンコーディング格納する配列返します。 (Encoding から継承されます。)
パブリック メソッド GetHashCode オーバーライドされます現在のインスタンスハッシュ コード返します
パブリック メソッド GetMaxByteCount オーバーライドされます指定した文字数エンコードすることによって生成される最大バイト数を計算します
パブリック メソッド GetMaxCharCount オーバーライドされます指定したバイト数をデコードすることによって生成される最大文字数計算します
パブリック メソッド GetPreamble オーバーライドされます。 このインスタンスコンストラクタバイト順マーク付加するよう指定した場合に、UTF-32 形式エンコードされた Unicode バイト順マーク返します
パブリック メソッド GetString オーバーロードされますバイト シーケンス文字列デコードます。
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド IsAlwaysNormalized  オーバーロードされます現在のエンコーディングが常に正規化されるかどうかを示す値を取得します。 (Encoding から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
参照参照

関連項目

UTF32Encoding クラス
System.Text 名前空間
Encoding クラス
Encoder クラス
Decoder クラス
UTF8Encoding
UTF7Encoding
ASCIIEncoding クラス
UnicodeEncoding クラス
System.Globalization.UnicodeCategory
System.Globalization.CharUnicodeInfo


このページでは「.NET Framework クラス ライブラリ リファレンス」からUTF32Encodingを検索した結果を表示しています。
Weblioに収録されているすべての辞書からUTF32Encodingを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からUTF32Encoding を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「UTF32Encoding」の関連用語

UTF32Encodingのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



UTF32Encodingのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS