Metoda CodeDomEventBindingService.FreeMethod —
Ten typ ma atrybut SecurityCriticalAttribute, który ogranicza możliwość użycia go do wewnętrznego użycia w programie .NET Framework na potrzeby biblioteki klas technologii Silverlight. Kod aplikacji, w którym jest używany dowolny element członkowski tego typu, powoduje powstanie wyjątku MethodAccessException.
[ZABEZPIECZENIA KRYTYCZNE]
Usuwa określona metoda kod obsługi zdarzeń, nie jest ona używana, jeśli jest pusty.
Przestrzeń nazw: Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Zestaw: Microsoft.VisualStudio.Shell.Design (w Microsoft.VisualStudio.Shell.Design.dll)
Składnia
'Deklaracja
Protected Overrides Sub FreeMethod ( _
component As IComponent, _
e As EventDescriptor, _
methodName As String _
)
protected override void FreeMethod(
IComponent component,
EventDescriptor e,
string methodName
)
Parametry
- component
Typ: System.ComponentModel.IComponent
IComponent .
- methodName
Typ: System.String
Nazwa metody do usunięcia.
Zobacz też
Informacje
CodeDomEventBindingService Klasa
Przestrzeń nazw Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom