NSDateIntervalFormatter.ToString(NSDateInterval) 方法

定义

返回当前实例的值的字符串表示形式。

[Foundation.Export("stringFromDateInterval:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual string ToString (Foundation.NSDateInterval dateInterval);
override this.ToString : Foundation.NSDateInterval -> string

参数

dateInterval
NSDateInterval

返回

属性

适用于