SoapDay 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 SoapDay 类的新实例。
重载
SoapDay() |
初始化 SoapDay 类的新实例。 |
SoapDay(DateTime) |
SoapDay()
初始化 SoapDay 类的新实例。
public:
SoapDay();
public SoapDay ();
Public Sub New ()
示例
下面的代码示例演示如何使用此构造函数。
// Create a SoapDay object.
SoapDay^ day = gcnew SoapDay;
day->Value = DateTime::Now;
Console::WriteLine( "The day is {0}.", day );
// Create a SoapDay object.
SoapDay day = new SoapDay();
day.Value = DateTime.Now;
Console.WriteLine("The day is {0}.", day.ToString());
适用于
SoapDay(DateTime)
public:
SoapDay(DateTime value);
public SoapDay (DateTime value);
new System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDay : DateTime -> System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDay
Public Sub New (value As DateTime)
参数
示例
下面的代码示例演示如何使用此构造函数。
// Create a SoapDay object.
SoapDay^ day = gcnew SoapDay( DateTime::Now );
Console::WriteLine( "The day is {0}.", day );
// Create a SoapDay object.
SoapDay day = new SoapDay(DateTime.Now);
Console.WriteLine("The day is {0}.", day.ToString());