NSObject.PerformSelector 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
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
이를 단일 매개 변수로 전달합니다.
[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
- 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
- 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
- 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
- waitUntilDone
- Boolean
- nsRunLoopModes
- NSString[]
- 특성