次の方法で共有


NSObject.PerformSelector メソッド

定義

オーバーロード

PerformSelector(Selector)
PerformSelector(Selector, NSObject)
PerformSelector(Selector, NSObject, NSObject)
PerformSelector(Selector, NSObject, Double)

現在のインスタンスでセレクターを呼び出し、 が null でない場合 obj は、これを 1 つのパラメーターとして渡します。

PerformSelector(Selector, NSObject, Double, NSString[])
PerformSelector(Selector, NSThread, NSObject, Boolean)
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[])

PerformSelector(Selector)

[Foundation.Export("performSelector:")]
public virtual Foundation.NSObject PerformSelector (ObjCRuntime.Selector aSelector);
abstract member PerformSelector : ObjCRuntime.Selector -> Foundation.NSObject
override this.PerformSelector : ObjCRuntime.Selector -> Foundation.NSObject

パラメーター

aSelector
Selector

戻り値

実装

属性

適用対象

PerformSelector(Selector, NSObject)

[Foundation.Export("performSelector:withObject:")]
public virtual Foundation.NSObject PerformSelector (ObjCRuntime.Selector aSelector, Foundation.NSObject anObject);
abstract member PerformSelector : ObjCRuntime.Selector * Foundation.NSObject -> Foundation.NSObject
override this.PerformSelector : ObjCRuntime.Selector * Foundation.NSObject -> Foundation.NSObject

パラメーター

aSelector
Selector
anObject
NSObject

戻り値

実装

属性

適用対象

PerformSelector(Selector, NSObject, NSObject)

[Foundation.Export("performSelector:withObject:withObject:")]
public virtual Foundation.NSObject PerformSelector (ObjCRuntime.Selector aSelector, Foundation.NSObject object1, Foundation.NSObject object2);
abstract member PerformSelector : ObjCRuntime.Selector * Foundation.NSObject * Foundation.NSObject -> Foundation.NSObject
override this.PerformSelector : ObjCRuntime.Selector * Foundation.NSObject * Foundation.NSObject -> Foundation.NSObject

パラメーター

aSelector
Selector
object1
NSObject
object2
NSObject

戻り値

実装

属性

適用対象

PerformSelector(Selector, NSObject, Double)

現在のインスタンスでセレクターを呼び出し、 が null でない場合 obj は、これを 1 つのパラメーターとして渡します。

[Foundation.Export("performSelector:withObject:afterDelay:")]
public virtual void PerformSelector (ObjCRuntime.Selector selector, Foundation.NSObject withObject, double delay);
abstract member PerformSelector : ObjCRuntime.Selector * Foundation.NSObject * double -> unit
override this.PerformSelector : ObjCRuntime.Selector * Foundation.NSObject * double -> unit

パラメーター

selector
Selector
withObject
NSObject

追加する。

このパラメーターは、null に設定できます。

delay
Double

メソッドが呼び出されるまでの遅延 (秒単位)。

属性

注釈

public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
	window = new UIWindow (UIScreen.MainScreen.Bounds);
	window.MakeKeyAndVisible ();
	// Invoke our method in 10 seconds
	PerformSelector (new MonoTouch.ObjCRuntime.Selector ("demo:"), new NSString ("hello world"), 10);
	return true;
}
// This registers the method "RunDemo" as responding to the selector "demo:"
[Export ("demo:")]
void RunDemo (NSString arg)
{
	Console.WriteLine ("This is the parameter I got {0}", arg);
}

適用対象

PerformSelector(Selector, NSObject, Double, NSString[])

[Foundation.Export("performSelector:withObject:afterDelay:inModes:")]
public virtual void PerformSelector (ObjCRuntime.Selector selector, Foundation.NSObject withObject, double afterDelay, Foundation.NSString[] nsRunLoopModes);
abstract member PerformSelector : ObjCRuntime.Selector * Foundation.NSObject * double * Foundation.NSString[] -> unit
override this.PerformSelector : ObjCRuntime.Selector * Foundation.NSObject * double * Foundation.NSString[] -> unit

パラメーター

selector
Selector
withObject
NSObject

追加する。

このパラメーターは、null に設定できます。

afterDelay
Double
nsRunLoopModes
NSString[]
属性

適用対象

PerformSelector(Selector, NSThread, NSObject, Boolean)

[Foundation.Export("performSelector:onThread:withObject:waitUntilDone:")]
public virtual void PerformSelector (ObjCRuntime.Selector selector, Foundation.NSThread onThread, Foundation.NSObject withObject, bool waitUntilDone);
abstract member PerformSelector : ObjCRuntime.Selector * Foundation.NSThread * Foundation.NSObject * bool -> unit
override this.PerformSelector : ObjCRuntime.Selector * Foundation.NSThread * Foundation.NSObject * bool -> unit

パラメーター

selector
Selector
onThread
NSThread
withObject
NSObject

追加する。

このパラメーターは、null に設定できます。

waitUntilDone
Boolean
属性

適用対象

PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[])

[Foundation.Export("performSelector:onThread:withObject:waitUntilDone:modes:")]
public virtual void PerformSelector (ObjCRuntime.Selector selector, Foundation.NSThread onThread, Foundation.NSObject withObject, bool waitUntilDone, Foundation.NSString[] nsRunLoopModes);
abstract member PerformSelector : ObjCRuntime.Selector * Foundation.NSThread * Foundation.NSObject * bool * Foundation.NSString[] -> unit
override this.PerformSelector : ObjCRuntime.Selector * Foundation.NSThread * Foundation.NSObject * bool * Foundation.NSString[] -> unit

パラメーター

selector
Selector
onThread
NSThread
withObject
NSObject

追加する。

このパラメーターは、null に設定できます。

waitUntilDone
Boolean
nsRunLoopModes
NSString[]
属性

適用対象