NSCalendar.DateByAddingComponents 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
DateByAddingComponents(NSDateComponents, NSDate, NSDateComponentsWrappingBehavior) |
已淘汰.
|
DateByAddingComponents(NSDateComponents, NSDate, NSCalendarOptions) |
DateByAddingComponents(NSDateComponents, NSDate, NSDateComponentsWrappingBehavior)
警告
Use the overload with a 'NSCalendarOptions' parameter.
[System.Obsolete("Use the overload with a 'NSCalendarOptions' parameter.", false)]
public Foundation.NSDate DateByAddingComponents (Foundation.NSDateComponents comps, Foundation.NSDate date, Foundation.NSDateComponentsWrappingBehavior opts);
member this.DateByAddingComponents : Foundation.NSDateComponents * Foundation.NSDate * Foundation.NSDateComponentsWrappingBehavior -> Foundation.NSDate
參數
- comps
- NSDateComponents
- date
- NSDate
傳回
- 屬性
適用於
DateByAddingComponents(NSDateComponents, NSDate, NSCalendarOptions)
[Foundation.Export("dateByAddingComponents:toDate:options:")]
public virtual Foundation.NSDate DateByAddingComponents (Foundation.NSDateComponents comps, Foundation.NSDate date, Foundation.NSCalendarOptions opts);
abstract member DateByAddingComponents : Foundation.NSDateComponents * Foundation.NSDate * Foundation.NSCalendarOptions -> Foundation.NSDate
override this.DateByAddingComponents : Foundation.NSDateComponents * Foundation.NSDate * Foundation.NSCalendarOptions -> Foundation.NSDate
參數
- comps
- NSDateComponents
- date
- NSDate
- opts
- NSCalendarOptions
傳回
- 屬性