SoapMonth 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 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)
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
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for