SoapMonthDay 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 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
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());