NSViewController.TryToPerformwith(Selector, NSObject) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
Use 'TryToPerformWith' instead.
[Foundation.Export("tryToPerform:with:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool TryToPerformwith(ObjCRuntime.Selector anAction, Foundation.NSObject? anObject);
[Foundation.Export("tryToPerform:with:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[System.Obsolete("Use 'TryToPerformWith' instead.", false)]
public virtual bool TryToPerformwith(ObjCRuntime.Selector anAction, Foundation.NSObject? anObject);
[<Foundation.Export("tryToPerform:with:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
override this.TryToPerformwith : ObjCRuntime.Selector * Foundation.NSObject -> bool
[<Foundation.Export("tryToPerform:with:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<System.Obsolete("Use 'TryToPerformWith' instead.", false)>]
override this.TryToPerformwith : ObjCRuntime.Selector * Foundation.NSObject -> bool
參數
- anAction
- Selector
- anObject
- NSObject
傳回
- 屬性