SoapMonthDay Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy SoapMonthDay.

Przeciążenia

SoapMonthDay()

Inicjuje nowe wystąpienie klasy SoapMonthDay.

SoapMonthDay(DateTime)

Inicjuje SoapMonthDay nowe wystąpienie klasy z określonym DateTime obiektem.

SoapMonthDay()

Inicjuje nowe wystąpienie klasy SoapMonthDay.

public:
 SoapMonthDay();
public SoapMonthDay ();
Public Sub New ()

Przykłady

W poniższym przykładzie kodu pokazano, jak używać tego konstruktora.

// Create a SoapMonthDay object.
SoapMonthDay^ monthDay = gcnew SoapMonthDay;
monthDay->Value = DateTime::Now;
Console::WriteLine( L"The SoapMonthDay object is {0}.", monthDay );
// Create a SoapMonthDay object.
SoapMonthDay monthDay = new SoapMonthDay();
monthDay.Value = DateTime.Now;
Console.WriteLine("The SoapMonthDay object is {0}.",
    monthDay.ToString());

Dotyczy

SoapMonthDay(DateTime)

Inicjuje SoapMonthDay nowe wystąpienie klasy z określonym DateTime obiektem.

public:
 SoapMonthDay(DateTime value);
public SoapMonthDay (DateTime value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapMonthDay : DateTime -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapMonthDay
Public Sub New (value As DateTime)

Parametry

value
DateTime

DateTime Obiekt inicjowania bieżącego wystąpienia.

Przykłady

W poniższym przykładzie kodu pokazano, jak używać tego konstruktora.

// Create a SoapMonthDay object.
SoapMonthDay^ monthDay = gcnew SoapMonthDay( DateTime::Now );
Console::WriteLine( L"The SoapMonthDay object is {0}.", monthDay );
// Create a SoapMonthDay object.
SoapMonthDay monthDay = new SoapMonthDay(DateTime.Now);
Console.WriteLine("The SoapMonthDay object is {0}.",
    monthDay.ToString());

Dotyczy