SoapDay Constructors

Definition

Initializes a new instance of the SoapDay class.

Overloads

SoapDay()

Initializes a new instance of the SoapDay class.

SoapDay(DateTime)

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

SoapDay()

Initializes a new instance of the SoapDay class.

public:
 SoapDay();
public SoapDay ();
Public Sub New ()

Examples

The following code example shows how to use this constructor.

// Create a SoapDay object.
SoapDay^ day = gcnew SoapDay;
day->Value = DateTime::Now;
Console::WriteLine( "The day is {0}.", day );
// Create a SoapDay object.
SoapDay day = new SoapDay();
day.Value = DateTime.Now;
Console.WriteLine("The day is {0}.", day.ToString());

Applies to

SoapDay(DateTime)

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

public:
 SoapDay(DateTime value);
public SoapDay (DateTime value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDay : DateTime -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDay
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 SoapDay object.
SoapDay^ day = gcnew SoapDay( DateTime::Now );
Console::WriteLine( "The day is {0}.", day );
// Create a SoapDay object.
SoapDay day = new SoapDay(DateTime.Now);
Console.WriteLine("The day is {0}.", day.ToString());

Applies to