EventInfoExtensions.GetRemoveMethod Метод
В этой статье
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
- Исходный код:
- TypeExtensions.cs
- Исходный код:
- TypeExtensions.cs
- Исходный код:
- TypeExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::Reflection::MethodInfo ^ GetRemoveMethod(System::Reflection::EventInfo ^ eventInfo);
public static System.Reflection.MethodInfo GetRemoveMethod (this System.Reflection.EventInfo eventInfo);
public static System.Reflection.MethodInfo? GetRemoveMethod (this System.Reflection.EventInfo eventInfo);
static member GetRemoveMethod : System.Reflection.EventInfo -> System.Reflection.MethodInfo
<Extension()>
Public Function GetRemoveMethod (eventInfo As EventInfo) As MethodInfo
Параметры
- eventInfo
- EventInfo
Возвращаемое значение
Применяется к
.NET 9 и другие версии
Продукт | Версии |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
UWP | 10.0 |
- Исходный код:
- TypeExtensions.cs
- Исходный код:
- TypeExtensions.cs
- Исходный код:
- TypeExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::Reflection::MethodInfo ^ GetRemoveMethod(System::Reflection::EventInfo ^ eventInfo, bool nonPublic);
public static System.Reflection.MethodInfo GetRemoveMethod (this System.Reflection.EventInfo eventInfo, bool nonPublic);
public static System.Reflection.MethodInfo? GetRemoveMethod (this System.Reflection.EventInfo eventInfo, bool nonPublic);
static member GetRemoveMethod : System.Reflection.EventInfo * bool -> System.Reflection.MethodInfo
<Extension()>
Public Function GetRemoveMethod (eventInfo As EventInfo, nonPublic As Boolean) As MethodInfo
Параметры
- eventInfo
- EventInfo
- nonPublic
- Boolean
Возвращаемое значение
Применяется к
.NET 9 и другие версии
Продукт | Версии |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
UWP | 10.0 |