HKQuery.SampleType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
开发人员不应使用此已弃用的属性。 开发人员应使用“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
。
- 属性