SoapTime.Value 属性
定义
获取或设置当前实例的日期和时间。Gets or sets the date and time of the current instance.
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 对象,包含当前实例的日期和时间。The DateTime object that contains the date and time of the current instance.
示例
下面的代码示例演示如何使用此属性。The following code example shows how to use this property. 此代码示例是为类提供的更大示例的一部分 SoapTime 。This code example is part of a larger example that is provided for the SoapTime class.
// Display the value of the SoapTime object.
Console::WriteLine( "The value of the SoapTime instance is {0}.",
time->Value );
// Display the value of the SoapTime object.
Console.WriteLine("The value of the SoapTime object is {0}.",
time.Value);