SoapMonth Constructors

Definition

Initializes a new instance of the SoapMonth class.

Overloads

SoapMonth()

Initializes a new instance of the SoapMonth class.

SoapMonth(DateTime)

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

SoapMonth()

Initializes a new instance of the SoapMonth class.

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

Examples

The following code example shows how to use this constructor.

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

Applies to

SoapMonth(DateTime)

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

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

Applies to