NSCalendar.Components 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Components(NSCalendarUnit, NSDate) | |
Components(NSCalendarUnit, NSDate, NSDate, NSCalendarOptions) | |
Components(NSCalendarUnit, NSDate, NSDate, NSDateComponentsWrappingBehavior) |
已过时.
|
Components(NSCalendarUnit, NSDate)
[Foundation.Export("components:fromDate:")]
public virtual Foundation.NSDateComponents Components (Foundation.NSCalendarUnit unitFlags, Foundation.NSDate fromDate);
abstract member Components : Foundation.NSCalendarUnit * Foundation.NSDate -> Foundation.NSDateComponents
override this.Components : Foundation.NSCalendarUnit * Foundation.NSDate -> Foundation.NSDateComponents
参数
- unitFlags
- NSCalendarUnit
- fromDate
- NSDate
返回
- 属性
适用于
Components(NSCalendarUnit, NSDate, NSDate, NSCalendarOptions)
[Foundation.Export("components:fromDate:toDate:options:")]
public virtual Foundation.NSDateComponents Components (Foundation.NSCalendarUnit unitFlags, Foundation.NSDate fromDate, Foundation.NSDate toDate, Foundation.NSCalendarOptions opts);
abstract member Components : Foundation.NSCalendarUnit * Foundation.NSDate * Foundation.NSDate * Foundation.NSCalendarOptions -> Foundation.NSDateComponents
override this.Components : Foundation.NSCalendarUnit * Foundation.NSDate * Foundation.NSDate * Foundation.NSCalendarOptions -> Foundation.NSDateComponents
参数
- unitFlags
- NSCalendarUnit
- fromDate
- NSDate
- toDate
- NSDate
- opts
- NSCalendarOptions
返回
- 属性
适用于
Components(NSCalendarUnit, NSDate, NSDate, NSDateComponentsWrappingBehavior)
注意
Use the overload with a 'NSCalendarOptions' parameter.
[System.Obsolete("Use the overload with a 'NSCalendarOptions' parameter.", false)]
public Foundation.NSDateComponents Components (Foundation.NSCalendarUnit unitFlags, Foundation.NSDate fromDate, Foundation.NSDate toDate, Foundation.NSDateComponentsWrappingBehavior opts);
member this.Components : Foundation.NSCalendarUnit * Foundation.NSDate * Foundation.NSDate * Foundation.NSDateComponentsWrappingBehavior -> Foundation.NSDateComponents
参数
- unitFlags
- NSCalendarUnit
- fromDate
- NSDate
- toDate
- NSDate
返回
- 属性