SoapMonth Constructor (DateTime)


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

Namespace:   System.Runtime.Remoting.Metadata.W3cXsd2001
Assembly:  mscorlib (in mscorlib.dll)

public SoapMonth(
	DateTime value


Type: System.DateTime

A DateTime object to initialize the current instance.

The following code example shows how to use this constructor.

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

.NET Framework
Available since 1.1
Return to top