NSObject.PerformSelector Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
PerformSelector(Selector) | |
PerformSelector(Selector, NSObject) | |
PerformSelector(Selector, NSObject, NSObject) | |
PerformSelector(Selector, NSObject, Double) |
Appelle le sélecteur sur l’instance actuelle et, si le |
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
Paramètres
- aSelector
- Selector
Retours
Implémente
- Attributs
S’applique à
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
Paramètres
- aSelector
- Selector
- anObject
- NSObject
Retours
Implémente
- Attributs
S’applique à
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
Paramètres
- aSelector
- Selector
- object1
- NSObject
- object2
- NSObject
Retours
Implémente
- Attributs
S’applique à
PerformSelector(Selector, NSObject, Double)
Appelle le sélecteur sur l’instance actuelle et, si le obj
n’est pas null, il le transmet en tant que paramètre unique.
[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
Paramètres
- selector
- Selector
- delay
- Double
Délai en secondes avant l’appel de la méthode.
- Attributs
Remarques
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);
}
S’applique à
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
Paramètres
- selector
- Selector
- afterDelay
- Double
- nsRunLoopModes
- NSString[]
- Attributs
S’applique à
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
Paramètres
- selector
- Selector
- onThread
- NSThread
- waitUntilDone
- Boolean
- Attributs
S’applique à
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
Paramètres
- selector
- Selector
- onThread
- NSThread
- waitUntilDone
- Boolean
- nsRunLoopModes
- NSString[]
- Attributs