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
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de