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


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

- SoapTime クラスのページへのリンク