ISmsTextMessage.Timestamp 属性

定义

检索消息的时间戳。 它是针对构造的消息实例在本地确定的,或者从收到的消息的服务中心时间戳确定的。

public:
 property DateTime Timestamp { DateTime get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("SmsTextMessage may be altered or unavailable for releases after Windows 10. Instead, use SmsTextMessage2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
DateTime Timestamp();
/// [get: Windows.Foundation.Metadata.Deprecated("SmsTextMessage may be altered or unavailable for releases after Windows 10. Instead, use SmsTextMessage2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
DateTime Timestamp();
public System.DateTimeOffset Timestamp { [Windows.Foundation.Metadata.Deprecated("SmsTextMessage may be altered or unavailable for releases after Windows 10. Instead, use SmsTextMessage2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))] get; }
public System.DateTimeOffset Timestamp { [Windows.Foundation.Metadata.Deprecated("SmsTextMessage may be altered or unavailable for releases after Windows 10. Instead, use SmsTextMessage2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")] get; }
var dateTime = iSmsTextMessage.timestamp;
Public ReadOnly Property Timestamp As DateTimeOffset

属性值

DateTime 类型的值。

属性

Windows 要求

应用功能
cellularMessaging sms

适用于