NSCalendar.Components Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Перегрузки
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
Возвращаемое значение
- Атрибуты