共用方式為


NSApplication.TryToPerform(Selector, NSObject) 方法

定義

[Foundation.Export("tryToPerform:with:")]
public virtual bool TryToPerform (ObjCRuntime.Selector anAction, Foundation.NSObject target);
abstract member TryToPerform : ObjCRuntime.Selector * Foundation.NSObject -> bool
override this.TryToPerform : ObjCRuntime.Selector * Foundation.NSObject -> bool

參數

anAction
Selector
target
NSObject

傳回

屬性

適用於