NSDateComponents.Week 属性

定义

开发人员不应使用此已弃用的属性。 开发人员应改用“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

属性

适用于