Edit

Share via


SoapTime Constructors

Definition

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)

Initializes a new instance of the SoapTime class with a specified DateTime object.

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

value
DateTime

A DateTime object to initialize the current instance.

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