Share via


HKHealthStore.GetDateOfBirthComponents(NSError) 方法

定义

尝试返回用户的出生日期的日期组件,并报告它在 参数 errorout遇到的任何错误。

[Foundation.Export("dateOfBirthComponentsWithError:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Foundation.NSDateComponents GetDateOfBirthComponents (out Foundation.NSError error);
abstract member GetDateOfBirthComponents :  -> Foundation.NSDateComponents
override this.GetDateOfBirthComponents :  -> Foundation.NSDateComponents

参数

error
NSError

返回

属性

适用于