SoapTime Class
Wraps an XSD time type.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | SoapTime() | Initializes a new instance of the SoapTime class. |
![]() | SoapTime(DateTime) | Initializes a new instance of the SoapTime class with a specified DateTime object. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | GetXsdType() | Returns the XML Schema definition language (XSD) of the current SOAP type. |
![]() ![]() | Parse(String^) | Converts the specified String into a SoapTime object. |
![]() | ToString() | Returns Value as a String.(Overrides Object::ToString().) |
For more information about XSD data types, see "XML Data Types Reference" in the MSDN Library at http://msdn.microsoft.com/library.
The following code example demonstrates using the SoapTime class to wrap an XSD time type.
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 ); }
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


