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

SoapNormalizedString クラス

XML normalizedString 型をラップます。

名前空間: System.Runtime.Remoting.Metadata.W3cXsd2001
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public NotInheritable Class
 SoapNormalizedString
    Implements ISoapXsd
Dim instance As SoapNormalizedString
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public sealed class SoapNormalizedString :
 ISoapXsd
[SerializableAttribute] 
[ComVisibleAttribute(true)] 
public ref class SoapNormalizedString sealed
 : ISoapXsd
/** @attribute SerializableAttribute() */ 
/** @attribute ComVisibleAttribute(true) */ 
public final class SoapNormalizedString implements
 ISoapXsd
SerializableAttribute 
ComVisibleAttribute(true) 
public final class SoapNormalizedString implements
 ISoapXsd
使用例使用例

SoapNormalizedString クラスメンバ使用してSoapNormalizedString オブジェクトXSD normalizedString 間の変換を行う方法次のコード例示します

using System;
using System.Runtime.Remoting.Metadata.W3cXsd2001;

public class Demo
{
    public static void TestParse(string
 testString)
    {
        try
        {
            // Parse the test string.
            SoapNormalizedString normalized = 
                SoapNormalizedString.Parse(testString);

            // Report that the parse succeeded if no exception was thrown.
            Console.WriteLine(
                "Parse succeeded on the string \"{0}\".",
 
                testString);

            // Print the string representation of the object.
            Console.WriteLine(
                "The normalized value of this string
 is \"{0}\".",
                normalized.ToString());

            // Print the XSD type of the object.
            Console.WriteLine(
                "The XSD type of the SoapNormalizedString " + 
                "object is {0}.", normalized.GetXsdType());

            // Print the value of the SoapNormalizedString object.
            Console.WriteLine(
                "The value of the SoapNormalizedString " +
                "object is \"{0}\".", 
                normalized.Value);
        }
        catch(System.Runtime.Remoting.RemotingException e)
        {
            // Report the details of the exception that was thrown.
            Console.WriteLine(
                "Parse failed on the string \"{0}\".",
 
                testString);
            Console.WriteLine(e.Message);
        }
    }

    public static void Main(string[]
 args)
    {
        // Create strings to test the Parse method.
        string stringWithSpaces = "one two";
        string stringWithSpacesAndTabs = "one two\t";
        string stringWithSpacesAndLineFeed = "one two\n";
        string stringWithSpacesAndCarriageReturn = "one two\r";

        // Test the Parse method with each string.
        TestParse(stringWithSpaces);
        TestParse(stringWithSpacesAndTabs);
        TestParse(stringWithSpacesAndLineFeed);
        TestParse(stringWithSpacesAndCarriageReturn);

        // Print the XSD type string of the SoapNormalizedString class.
        Console.WriteLine(
            "The XSD type of the SoapNormalizedString class
 " +
            "is {0}.", SoapNormalizedString.XsdType);
    }
}
#using <System.Runtime.Remoting.dll>
using namespace System;
using namespace System::Runtime::Remoting::Metadata::W3cXsd2001;

static void TestParse( String^ testString )
{
   try
   {
      // Parse the test string.
      SoapNormalizedString^ normalized = SoapNormalizedString::Parse(
         testString );

      // Report that the parse succeeded if no exception was thrown.
      Console::WriteLine( L"Parse succeeded on the string
 \"{0}\".",
         testString );
      
      // Print the string representation of the object.
      Console::WriteLine( L"The normalized value of this
 string is \"{0}\".",
         normalized );

      // Print the XSD type of the object.
      Console::WriteLine( L"The XSD type of the SoapNormalizedString object
 is {0}.",
         normalized->GetXsdType() );

      // Print the value of the SoapNormalizedString object.
      Console::WriteLine( L"The value of the SoapNormalizedString object is
 \"{0}\".",
         normalized->Value );
   }
   catch ( System::Runtime::Remoting::RemotingException^ e ) 
   {
      // Report the details of the exception that was thrown.
      Console::WriteLine( L"Parse failed on the string \"{0}\"."
,
         testString );
      Console::WriteLine( e->Message );
   }
}

int main()
{
   // Create strings to test the Parse method.
   String^ stringWithSpaces = L"one two";
   String^ stringWithSpacesAndTabs = L"one two\t";
   String^ stringWithSpacesAndLineFeed = L"one two\n";
   String^ stringWithSpacesAndCarriageReturn = L"one two\r";
   
   // Test the Parse method with each string.
   TestParse( stringWithSpaces );
   TestParse( stringWithSpacesAndTabs );
   TestParse( stringWithSpacesAndLineFeed );
   TestParse( stringWithSpacesAndCarriageReturn );
   
   // Print the XSD type string of the SoapNormalizedString class.
   Console::WriteLine( L"The XSD type of the SoapNormalizedString class
 is {0}.",
      SoapNormalizedString::XsdType );
}
import System.*;
import System.Runtime.Remoting.Metadata.W3cXsd2001.*;

public class Demo
{
    public static void TestParse(String
 testString)
    {
        try {
            // Parse the test string.
            SoapNormalizedString normalized = SoapNormalizedString.
                Parse(testString);

            // Report that the parse succeeded if no exception was thrown.
            Console.WriteLine("Parse succeeded on the string
 \"{0}\".", 
                testString);
            // Print the string representation of the object.
            Console.WriteLine("The normalized value of this
 string is \"{0}\".", 
                normalized.ToString());

            // Print the XSD type of the object.
            Console.WriteLine("The XSD type of the SoapNormalizedString "
 
                + "object is {0}.", normalized.GetXsdType());

            // Print the value of the SoapNormalizedString object.
            Console.WriteLine("The value of the SoapNormalizedString "
 
                + "object is \"{0}\".", normalized.get_Value());
        }
        catch (System.Runtime.Remoting.RemotingException e) {
            // Report the details of the exception that was thrown.
            Console.WriteLine("Parse failed on the string
 \"{0}\".", 
                testString);
            Console.WriteLine(e.get_Message());
        }
    } //TestParse

    public static void main(String[]
 args)
    {
        // Create strings to test the Parse method.
        String stringWithSpaces = "one two";
        String stringWithSpacesAndTabs = "one two\t";
        String stringWithSpacesAndLineFeed = "one two\n";
        String stringWithSpacesAndCarriageReturn = "one two\r";
        // Test the Parse method with each string.
        TestParse(stringWithSpaces);
        TestParse(stringWithSpacesAndTabs);
        TestParse(stringWithSpacesAndLineFeed);
        TestParse(stringWithSpacesAndCarriageReturn);

        // Print the XSD type string of the SoapNormalizedString class.
        Console.WriteLine("The XSD type of the SoapNormalizedString class
 " 
            + "is {0}.", SoapNormalizedString.get_XsdType());
    } //main
} //Demo
継承階層継承階層
System.Object
  System.Runtime.Remoting.Metadata.W3cXsd2001.SoapNormalizedString
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapNormalizedString メンバ
System.Runtime.Remoting.Metadata.W3cXsd2001 名前空間

SoapNormalizedString コンストラクタ ()

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

名前空間: System.Runtime.Remoting.Metadata.W3cXsd2001
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Dim instance As New SoapNormalizedString
public SoapNormalizedString ()
public:
SoapNormalizedString ()
public SoapNormalizedString ()
public function SoapNormalizedString ()
使用例使用例

このコンストラクタ使用するコードの例次に示します

// Create a SoapNormalizedString object.
SoapNormalizedString normalized = new SoapNormalizedString();
normalized.Value = "one two"; 
Console.WriteLine(
    "The value of the SoapNormalizedString object is {0}.", 
    normalized.ToString());
// Create a SoapNormalizedString object.
SoapNormalizedString^ normalized = gcnew SoapNormalizedString;
normalized->Value = L"one two";
Console::WriteLine( L"The value of the SoapNormalizedString object is {0}."
,
   normalized );
// Create a SoapNormalizedString object.
SoapNormalizedString normalized = new SoapNormalizedString();
normalized.set_Value("one two");
Console.WriteLine("The value of the SoapNormalizedString "
    + "object is {0}.", normalized.ToString());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapNormalizedString クラス
SoapNormalizedString メンバ
System.Runtime.Remoting.Metadata.W3cXsd2001 名前空間

SoapNormalizedString コンストラクタ

SoapNormalizedString クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
SoapNormalizedString () SoapNormalizedString クラス新しインスタンス初期化します。
SoapNormalizedString (String) 正規化文字列使用してSoapNormalizedString クラス新しインスタンス初期化します。
参照参照

関連項目

SoapNormalizedString クラス
SoapNormalizedString メンバ
System.Runtime.Remoting.Metadata.W3cXsd2001 名前空間

SoapNormalizedString コンストラクタ (String)

正規化文字列使用して、SoapNormalizedString クラス新しインスタンス初期化します。

名前空間: System.Runtime.Remoting.Metadata.W3cXsd2001
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Dim value As String

Dim instance As New SoapNormalizedString(value)
public SoapNormalizedString (
    string value
)
public:
SoapNormalizedString (
    String^ value
)
public SoapNormalizedString (
    String value
)
public function SoapNormalizedString (
    value : String
)

パラメータ

value

正規化文字列格納している String オブジェクト

例外例外
例外種類条件

RemotingException

value に、無効な文字 (0xD、0xA、または 0x9) が含まれています。

使用例使用例

このコンストラクタ使用するコードの例次に示します

// Create a SoapNormalizedString object.
string testString = "one two"; 
SoapNormalizedString normalized = 
    new SoapNormalizedString(testString);
Console.WriteLine(
    "The value of the SoapNormalizedString object is {0}.", 
    normalized.ToString());
// Create a SoapNormalizedString object.
String^ testString = L"one two";
SoapNormalizedString^ normalized = gcnew SoapNormalizedString(
   testString );
Console::WriteLine( L"The value of the SoapNormalizedString object is {0}."
,
   normalized );
// Create a SoapNormalizedString object.
String testString = "one two";
SoapNormalizedString normalized = new SoapNormalizedString(testString);
Console.WriteLine("The value of the SoapNormalizedString "
    + "object is {0}.", normalized.ToString());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapNormalizedString クラス
SoapNormalizedString メンバ
System.Runtime.Remoting.Metadata.W3cXsd2001 名前空間

SoapNormalizedString プロパティ


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

  名前 説明
パブリック プロパティ XsdType 現在の SOAP 型の XML スキーマ定義言語 (XSD) を取得します
参照参照

関連項目

SoapNormalizedString クラス
System.Runtime.Remoting.Metadata.W3cXsd2001 名前空間

SoapNormalizedString メソッド


SoapNormalizedString メンバ

XML normalizedString 型をラップます。

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド SoapNormalizedString オーバーロードされます。 SoapNormalizedString クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ XsdType 現在の SOAP 型の XML スキーマ定義言語 (XSD) を取得します
パブリック メソッドパブリック メソッド
参照参照

関連項目

SoapNormalizedString クラス
System.Runtime.Remoting.Metadata.W3cXsd2001 名前空間


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

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

辞書ショートカット

すべての辞書の索引

「SoapNormalizedString」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS