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

SoapYearMonth クラス

XSD gYearMonth 型をラップます。

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

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

SoapYearMonth クラス使用して XSD gYearMonth 型をラップするコード例次に示します

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

public class Demo
{
    public static void Main(string[]
 args)
    {
        // Parse an XSD gYearMonth to create a SoapYearMonth object.
        // The time zone of this object is -08:00.
        string xsdYearMonth = "2003-11-08:00";
        SoapYearMonth yearMonth = SoapYearMonth.Parse(xsdYearMonth);

        // Display the yearMonth in XSD format. 
        Console.WriteLine("The yearMonth in XSD format is
 {0}.",
            yearMonth.ToString());

        // Display the XSD type string of this SoapYearMonth object.
        Console.WriteLine(
            "The XSD type of the SoapYearMonth object is {0}.",
            yearMonth.GetXsdType());

        // Display the value of the SoapYearMonth object.
        Console.WriteLine("The value of the SoapYearMonth object is {0}."
,
            yearMonth.Value);

        // Display the sign of the SoapYearMonth object.
        Console.WriteLine("The sign of the SoapYearMonth object is {0}."
,
            yearMonth.Sign);

        // Display the XSD type string of the SoapYearMonth class.
        Console.WriteLine("The XSD type of the class SoapYearMonth
 is {0}.",
            SoapYearMonth.XsdType);
    }
}
using namespace System;
using namespace System::Runtime::Remoting::Metadata::W3cXsd2001;

int main()
{
   // Parse an XSD gYearMonth to create a SoapYearMonth object.
   // The timezone of this object is -08:00.
   String^ xsdYearMonth = "2003-11-08:00";
   SoapYearMonth^ yearMonth = SoapYearMonth::Parse( xsdYearMonth );

   // Display the yearMonth in XSD format. 
   Console::WriteLine( "The yearMonth in XSD format is {0}."
,
      yearMonth );

   // Display the XSD type string of this particular SoapYearMonth object.
   Console::WriteLine( "The XSD type of the SoapYearMonth instance is {0}."
,
      yearMonth->GetXsdType() );

   // Display the value of the SoapYearMonth object.
   Console::WriteLine( "The value of the SoapYearMonth instance is {0}."
,
      yearMonth->Value );

   // Display the sign of the SoapYearMonth object.
   Console::WriteLine( "The sign of the SoapYearMonth instance is {0}."
,
      yearMonth->Sign );

   // Display the XSD type string of the SoapYearMonth class.
   Console::WriteLine( "The XSD type of the class SoapYearMonth
 is {0}.",
      SoapYearMonth::XsdType );
}
import System.*;
import System.Runtime.Remoting.Metadata.W3cXsd2001.*;

public class Demo
{
    public static void main(String[]
 args)
    {
        // Parse an XSD gYearMonth to create a SoapYearMonth object.
        // The time zone of this object is -08:00.
        String xsdYearMonth = "2003-11-08:00";
        SoapYearMonth yearMonth = SoapYearMonth.Parse(xsdYearMonth);
        // Display the yearMonth in XSD format. 
        Console.WriteLine("The yearMonth in XSD format is
 {0}.",
            yearMonth.ToString());
        // Display the XSD type string of this SoapYearMonth object.
        Console.WriteLine("The XSD type of the SoapYearMonth object is {0}."
,
            yearMonth.GetXsdType());
        // Display the value of the SoapYearMonth object.
        Console.WriteLine("The value of the SoapYearMonth object is {0}."
, 
            yearMonth.get_Value());
        // Display the sign of the SoapYearMonth object.
        Console.WriteLine("The sign of the SoapYearMonth object is {0}."
, 
            System.Convert.ToString(yearMonth.get_Sign()));
        // Display the XSD type string of the SoapYearMonth class.
        Console.WriteLine("The XSD type of the class SoapYearMonth
 is {0}.", 
            System.Convert.ToString(SoapYearMonth.get_XsdType()));
    } //main
} //Demo 
継承階層継承階層
System.Object
  System.Runtime.Remoting.Metadata.W3cXsd2001.SoapYearMonth
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapYearMonth メンバ
System.Runtime.Remoting.Metadata.W3cXsd2001 名前空間

SoapYearMonth コンストラクタ ()

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

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

public SoapYearMonth ()
public:
SoapYearMonth ()
public SoapYearMonth ()
public function SoapYearMonth ()
使用例使用例

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

// Create a SoapYearMonth object.
SoapYearMonth yearMonth = new SoapYearMonth();
yearMonth.Value = DateTime.Now;
Console.WriteLine("The yearMonth is {0}.", yearMonth.ToString());
// Create a SoapYearMonth object.
SoapYearMonth^ year = gcnew SoapYearMonth;
year->Value = DateTime::Now;
Console::WriteLine( "The year is {0}.", year );
// Create a SoapYearMonth object.
SoapYearMonth yearMonth = new SoapYearMonth();
yearMonth.set_Value(DateTime.get_Now());
Console.WriteLine("The yearMonth is {0}.", yearMonth.ToString());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapYearMonth クラス
SoapYearMonth メンバ
System.Runtime.Remoting.Metadata.W3cXsd2001 名前空間

SoapYearMonth コンストラクタ (DateTime, Int32)

指定した DateTime オブジェクトおよび Value が正または負のどちらの値であるかを示す整数使用して、SoapYearMonth クラス新しインスタンス初期化します。

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

解説解説

0 未満整数は、負の sign示します

使用例使用例

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

// Create a SoapYearMonth object with a positive sign.
SoapYearMonth yearMonth = new SoapYearMonth(DateTime.Now, 1);
Console.WriteLine("The yearMonth is {0}.", yearMonth.ToString());
// Create a SoapYearMonth object with a positive sign.
SoapYearMonth^ year = gcnew SoapYearMonth( DateTime::Now,1 );
Console::WriteLine( "The year is {0}.", year );
// Create a SoapYearMonth object with a positive sign.
SoapYearMonth yearMonth = new SoapYearMonth(DateTime.get_Now(),
 1);
Console.WriteLine("The yearMonth is {0}.", yearMonth.ToString());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapYearMonth クラス
SoapYearMonth メンバ
System.Runtime.Remoting.Metadata.W3cXsd2001 名前空間

SoapYearMonth コンストラクタ

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

名前 説明
SoapYearMonth () SoapYearMonth クラス新しインスタンス初期化します。
SoapYearMonth (DateTime) 指定した DateTime オブジェクト使用してSoapYearMonth クラス新しインスタンス初期化します。
SoapYearMonth (DateTime, Int32) 指定した DateTime オブジェクトおよび Value が正または負のどちらの値であるかを示す整数使用してSoapYearMonth クラス新しインスタンス初期化します。
参照参照

関連項目

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

SoapYearMonth コンストラクタ (DateTime)

指定した DateTime オブジェクト使用して、SoapYearMonth クラス新しインスタンス初期化します。

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

使用例使用例

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

// Create a SoapYearMonth object.
SoapYearMonth yearMonth = new SoapYearMonth(DateTime.Now);
Console.WriteLine("The yearMonth is {0}.", yearMonth.ToString());
// Create a SoapYearMonth object.
SoapYearMonth^ year = gcnew SoapYearMonth( DateTime::Now );
Console::WriteLine( "The year is {0}.", year );
// Create a SoapYearMonth object.
SoapYearMonth yearMonth = new SoapYearMonth(DateTime.get_Now());
Console.WriteLine("The yearMonth is {0}.", yearMonth.ToString());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapYearMonth クラス
SoapYearMonth メンバ
System.Runtime.Remoting.Metadata.W3cXsd2001 名前空間

SoapYearMonth プロパティ


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

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

関連項目

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

SoapYearMonth メソッド


SoapYearMonth メンバ

XSD gYearMonth 型をラップます。

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


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

関連項目

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


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

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

辞書ショートカット

すべての辞書の索引

「SoapYearMonth」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS