HKQuery.SampleType 属性

定义

开发人员不应使用此已弃用的属性。 开发人员应使用“ObjectType”属性。

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 2, 2, ObjCRuntime.PlatformArchitecture.None, "Use 'ObjectType' property.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 3, ObjCRuntime.PlatformArchitecture.None, "Use 'ObjectType' property.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 2, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual HealthKit.HKSampleType SampleType { [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 2, 2, ObjCRuntime.PlatformArchitecture.None, "Use 'ObjectType' property.")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 3, ObjCRuntime.PlatformArchitecture.None, "Use 'ObjectType' property.")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 2, 0, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("sampleType", ObjCRuntime.ArgumentSemantic.Strong)] get; }
member this.SampleType : HealthKit.HKSampleType

属性值

(即将推出有关此节点的更多文档)

此值可为 null

属性

适用于