CodeDomEventBindingService.FreeMethod Method
This type has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses any member of this type throws a MethodAccessException.
[SECURITY CRITICAL]
Removes the specified method from the code if no event handlers are using it and it is empty.
Namespace: Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaração
Protected Overrides Sub FreeMethod ( _
component As IComponent, _
e As EventDescriptor, _
methodName As String _
)
protected override void FreeMethod(
IComponent component,
EventDescriptor e,
string methodName
)
Parameters
- component
Type: System.ComponentModel.IComponent
IComponent .
- methodName
Type: System.String
The name of the method to remove.
See Also
Reference
CodeDomEventBindingService Class
Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom Namespace