SoapYear Constructor (DateTime)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public SoapYear(
	DateTime value
)

Parameters

value
Type: System.DateTime

A DateTime object to initialize the current instance.

The following code example shows how to use this constructor.

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

.NET Framework
Available since 1.1
Return to top
Show: