SoapYearMonth クラス
アセンブリ: mscorlib (mscorlib.dll 内)

<SerializableAttribute> _ <ComVisibleAttribute(True)> _ Public NotInheritable Class SoapYearMonth Implements ISoapXsd
[SerializableAttribute] [ComVisibleAttribute(true)] public ref class SoapYearMonth sealed : ISoapXsd

XSD データ型の詳細については、MSDN ライブラリ (http://msdn.microsoft.com/library) の「XML Data Types Reference」を参照してください。

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.Runtime.Remoting.Metadata.W3cXsd2001.SoapYearMonth


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


SoapYearMonth コンストラクタ ()
アセンブリ: mscorlib (mscorlib.dll 内)


// Create a SoapYearMonth object. SoapYearMonth yearMonth = new SoapYearMonth(); yearMonth.Value = DateTime.Now; Console.WriteLine("The yearMonth is {0}.", yearMonth.ToString());

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


SoapYearMonth コンストラクタ (DateTime, Int32)
アセンブリ: mscorlib (mscorlib.dll 内)



// Create a SoapYearMonth object with a positive sign. SoapYearMonth yearMonth = new SoapYearMonth(DateTime.Now, 1); Console.WriteLine("The yearMonth is {0}.", yearMonth.ToString());

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


SoapYearMonth コンストラクタ

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

SoapYearMonth コンストラクタ (DateTime)
アセンブリ: mscorlib (mscorlib.dll 内)


// Create a SoapYearMonth object. SoapYearMonth yearMonth = new SoapYearMonth(DateTime.Now); Console.WriteLine("The yearMonth is {0}.", yearMonth.ToString());

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


SoapYearMonth プロパティ
SoapYearMonth メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | GetXsdType | 現在の SOAP 型の XML スキーマ定義言語 (XSD) を返します。 |
![]() | Parse | 指定した String を SoapYearMonth オブジェクトに変換します。 |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | オーバーライドされます。 Value を String として返します。 |

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



名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | GetXsdType | 現在の SOAP 型の XML スキーマ定義言語 (XSD) を返します。 |
![]() | Parse | 指定した String を SoapYearMonth オブジェクトに変換します。 |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | オーバーライドされます。 Value を String として返します。 |

Weblioに収録されているすべての辞書からSoapYearMonthを検索する場合は、下記のリンクをクリックしてください。

- SoapYearMonthのページへのリンク