語言

NSViewController.TryToPerformwith(Selector, NSObject) 方法

定義

警告

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

傳回

屬性

適用於