EventInfo.GetRemoveMethod Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Returnerar den metod som används för att ta bort ett händelsehanterardelegat från händelsekällan.
Överlagringar
| Name | Description |
|---|---|
| GetRemoveMethod(Boolean) |
När det åsidosättas i en härledd klass hämtar objektet |
| GetRemoveMethod() |
Returnerar den metod som används för att ta bort ett händelsehanterardelegat från händelsekällan. |
GetRemoveMethod(Boolean)
- Källa:
- EventInfo.cs
- Källa:
- EventInfo.cs
- Källa:
- EventInfo.cs
- Källa:
- EventInfo.cs
- Källa:
- EventInfo.cs
När det åsidosättas i en härledd klass hämtar objektet MethodInfo för att ta bort en metod för händelsen och anger om icke-offentliga metoder ska returneras.
public:
abstract System::Reflection::MethodInfo ^ GetRemoveMethod(bool nonPublic);
public abstract System.Reflection.MethodInfo? GetRemoveMethod(bool nonPublic);
public abstract System.Reflection.MethodInfo GetRemoveMethod(bool nonPublic);
abstract member GetRemoveMethod : bool -> System.Reflection.MethodInfo
Public MustOverride Function GetRemoveMethod (nonPublic As Boolean) As MethodInfo
Parametrar
- nonPublic
- Boolean
trueom icke-offentliga metoder kan returneras. annars . false
Returer
Ett MethodInfo objekt som representerar metoden som används för att ta bort ett händelsehanterardelegat från händelsekällan.
Implementeringar
Undantag
nonPublic är true, metoden som används för att lägga till en händelsehanterardelegat är icke-offentlig och anroparen har inte behörighet att reflektera över icke-offentliga metoder.
Exempel
Metoden har vanligtvis följande signatur:
remove_<EventName>(<EventHandlerType> handler)
Se även
Gäller för
GetRemoveMethod()
- Källa:
- EventInfo.cs
- Källa:
- EventInfo.cs
- Källa:
- EventInfo.cs
- Källa:
- EventInfo.cs
- Källa:
- EventInfo.cs
Returnerar den metod som används för att ta bort ett händelsehanterardelegat från händelsekällan.
public:
System::Reflection::MethodInfo ^ GetRemoveMethod();
public:
virtual System::Reflection::MethodInfo ^ GetRemoveMethod();
public System.Reflection.MethodInfo? GetRemoveMethod();
public System.Reflection.MethodInfo GetRemoveMethod();
member this.GetRemoveMethod : unit -> System.Reflection.MethodInfo
abstract member GetRemoveMethod : unit -> System.Reflection.MethodInfo
override this.GetRemoveMethod : unit -> System.Reflection.MethodInfo
Public Function GetRemoveMethod () As MethodInfo
Returer
Ett MethodInfo objekt som representerar metoden som används för att ta bort ett händelsehanterardelegat från händelsekällan.
Implementeringar
Exempel
Metoden har vanligtvis följande signatur:
remove_<EventName>(<EventHandlerType> handler)