Share via


SoapMonthDay.Value 属性

定义

获取或设置当前实例的日期和时间。

public:
 property DateTime Value { DateTime get(); void set(DateTime value); };
public DateTime Value { get; set; }
member this.Value : DateTime with get, set
Public Property Value As DateTime

属性值

DateTime 对象,包含当前实例的日期和时间。

示例

下面的代码示例说明如何使用 Value 属性。 此代码示例是为 SoapMonthDay 类提供的一个更大示例的一部分。

// Print the value of the SoapMonthDay object.
Console::WriteLine( L"The value of the SoapMonthDay object is {0}.",
   monthDay->Value );
// Print the value of the SoapMonthDay object.
Console.WriteLine("The value of the SoapMonthDay object is {0}.",
    monthDay.Value);

适用于