SoapTime Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the SoapTime class.
Overloads
SoapTime() |
Initializes a new instance of the SoapTime class. |
SoapTime(DateTime) |
Initializes a new instance of the SoapTime class with a specified DateTime object. |
SoapTime()
Initializes a new instance of the SoapTime class.
public:
SoapTime();
public SoapTime ();
Public Sub New ()
Examples
The following code example shows how to use this constructor.
// Create a SoapTime object.
SoapTime^ time = gcnew SoapTime;
time->Value = DateTime::Now;
Console::WriteLine( "The time is {0}.", time );
// Create a SoapTime object.
SoapTime time = new SoapTime();
time.Value = DateTime.Now;
Console.WriteLine("The time is {0}.", time.ToString());
Applies to
SoapTime(DateTime)
public:
SoapTime(DateTime value);
public SoapTime (DateTime value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapTime : DateTime -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapTime
Public Sub New (value As DateTime)
Parameters
Examples
The following code example shows how to use this constructor.
// Create a SoapTime object.
SoapTime^ time = gcnew SoapTime( DateTime::Now );
Console::WriteLine( "The time is {0}.", time );
// Create a SoapTime object.
SoapTime time = new SoapTime(DateTime.Now);
Console.WriteLine("The time is {0}.", time.ToString());
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for