Edit

Share via


SoapMonthDay Constructors

Definition

Initializes a new instance of the SoapMonthDay class.

Overloads

SoapMonthDay()

Initializes a new instance of the SoapMonthDay class.

SoapMonthDay(DateTime)

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

SoapMonthDay()

Initializes a new instance of the SoapMonthDay class.

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

Examples

The following code example shows how to use this constructor.

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

Applies to

SoapMonthDay(DateTime)

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

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

Applies to