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

<SerializableAttribute> _ <ComVisibleAttribute(True)> _ Public NotInheritable Class SoapTime Implements ISoapXsd

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

SoapTime クラスを使用して、XSD time 型をラップするコード例を次に示します。
using System; using System.Runtime.Remoting.Metadata.W3cXsd2001; public class Demo { public static void Main(string[] args) { // Parse an XSD gTime to create a SoapTime object. // The time zone of this object is the current time zone. string xsdTime = "12:13:14.123Z"; SoapTime time = SoapTime.Parse(xsdTime); // Display the time in XSD format. Console.WriteLine("The time in XSD format is {0}." , time.ToString()); // Display the XSD type string of this particular SoapTime object. Console.WriteLine("The XSD type of the SoapTime object is {0}." , time.GetXsdType()); // Display the value of the SoapTime object. Console.WriteLine("The value of the SoapTime object is {0}.", time.Value); // Display the XSD type string of the SoapTime class. Console.WriteLine("The XSD type of the class SoapTime is {0}.", SoapTime.XsdType); } }
using namespace System; using namespace System::Runtime::Remoting::Metadata::W3cXsd2001; int main() { // Parse an XSD gTime to create a SoapTime object. // The timezone of this object is the current timezone. String^ xsdTime = "12:13:14.123Z"; SoapTime^ time = SoapTime::Parse( xsdTime ); // Display the time in XSD format. Console::WriteLine( "The time in XSD format is {0}." , time ); // Display the XSD type string of this particular SoapTime object. Console::WriteLine( "The XSD type of the SoapTime instance is {0}." , time->GetXsdType() ); // Display the value of the SoapTime object. Console::WriteLine( "The value of the SoapTime instance is {0}.", time->Value ); // Display the XSD type string of the SoapTime class. Console::WriteLine( "The XSD type of the class SoapTime is {0}.", SoapTime::XsdType ); }
import System.*; import System.Runtime.Remoting.Metadata.W3cXsd2001.*; public class Demo { public static void main(String[] args) { // Parse an XSD gTime to create a SoapTime object. // The time zone of this object is the current time zone. String xsdTime = "12:13:14.123Z"; SoapTime time = SoapTime.Parse(xsdTime); // Display the time in XSD format. Console.WriteLine("The time in XSD format is {0}." , time.ToString()); // Display the XSD type string of this particular SoapTime object. Console.WriteLine("The XSD type of the SoapTime object is {0}." , time.GetXsdType()); // Display the value of the SoapTime object. Console.WriteLine("The value of the SoapTime object is {0}.", time.get_Value()); // Display the XSD type string of the SoapTime class. Console.WriteLine("The XSD type of the class SoapTime is {0}.", System.Convert.ToString(SoapTime.get_XsdType())); } //main } //Demo

System.Runtime.Remoting.Metadata.W3cXsd2001.SoapTime


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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


// Create a SoapTime object. SoapTime time = new SoapTime(); time.Value = DateTime.Now; Console.WriteLine("The time is {0}.", time.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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


SoapTime コンストラクタ

名前 | 説明 |
---|---|
SoapTime () | SoapTime クラスの新しいインスタンスを初期化します。 |
SoapTime (DateTime) | 指定した DateTime オブジェクトを使用して、SoapTime クラスの新しいインスタンスを初期化します。 |

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


// Create a SoapTime object. SoapTime time = new SoapTime(DateTime.Now); Console.WriteLine("The time is {0}.", time.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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


SoapTime プロパティ
SoapTime メソッド

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

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



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

- SoapTimeのページへのリンク