Metoda CodeDomEventBindingService.ShowCode — (IComponent, EventDescriptor, String)
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]
Pokazuje treści kodu użytkownika z danej metody deskryptora nazwę i zdarzeń.
Przestrzeń nazw: Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Zestaw: Microsoft.VisualStudio.Shell.Design (w Microsoft.VisualStudio.Shell.Design.dll)
Składnia
'Deklaracja
Protected Overrides Function ShowCode ( _
component As IComponent, _
e As EventDescriptor, _
methodName As String _
) As Boolean
protected override bool ShowCode(
IComponent component,
EventDescriptor e,
string methodName
)
Parametry
- component
Typ: System.ComponentModel.IComponent
IComponent .
- methodName
Typ: System.String
Nazwa metody.
Wartość zwracana
Typ: System.Boolean
true Jeśli było możliwe otworzyć okno Edytor, w przeciwnym razie false.
Zobacz też
Informacje
CodeDomEventBindingService Klasa
Przestrzeń nazw Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom