SoapYear Constructor (DateTime, Int32)

 

Initializes a new instance of the SoapYear class with a specified DateTime object and an integer that indicates whether Value is a positive or negative value.

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

public SoapYear(
	DateTime value,
	int sign
)

Parameters

value
Type: System.DateTime

A DateTime object to initialize the current instance.

sign
Type: System.Int32

An integer that indicates whether value is positive.

The following code example shows how to use this constructor.

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

.NET Framework
Available since 1.1
Return to top
Show: