NSDateComponents.Week 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
开发人员不应使用此已弃用的属性。 开发人员应改用“WeekOfMonth”或“WeekOfYear”。
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.None, "Use 'WeekOfMonth' or 'WeekOfYear' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'WeekOfMonth' or 'WeekOfYear' instead.")]
public virtual nint Week { [Foundation.Export("week")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.None, "Use 'WeekOfMonth' or 'WeekOfYear' instead.")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'WeekOfMonth' or 'WeekOfYear' instead.")] get; [Foundation.Export("setWeek:")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.None, "Use 'WeekOfMonth' or 'WeekOfYear' instead.")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'WeekOfMonth' or 'WeekOfYear' instead.")] set; }
member this.Week : nint with get, set
属性值
System.System.IntPtr
System.nativeint
表示 NSDateComponent 的 Week 组件,如果未显式设置该值,则该值设置为 Undefined 。
- 属性