共用方式為


NSDateComponents.SetValueForComponent(nint, NSCalendarUnit) 方法

定義

[Foundation.Export("setValue:forComponent:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetValueForComponent (nint value, Foundation.NSCalendarUnit unit);
abstract member SetValueForComponent : nint * Foundation.NSCalendarUnit -> unit
override this.SetValueForComponent : nint * Foundation.NSCalendarUnit -> unit

參數

value
System.System.IntPtr System.nativeint
屬性

適用於