CodeDomEventBindingService Class
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]
A service used to generate event-handling code.
This API is not CLS-compliant. The CLS-compliant alternative is [None].
Inheritance Hierarchy
Object
EventBindingService
Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomEventBindingService
Namespace: Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
<SecurityCriticalAttribute> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public MustInherit Class CodeDomEventBindingService _
Inherits EventBindingService
[CLSCompliantAttribute(false)]
[SecurityCriticalAttribute]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public abstract class CodeDomEventBindingService : EventBindingService
[CLSCompliantAttribute(false)]
[SecurityCriticalAttribute]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = L"FullTrust")]
public ref class CodeDomEventBindingService abstract : public EventBindingService
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
[<SecurityCriticalAttribute>]
[<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")>]
type CodeDomEventBindingService =
class
inherit EventBindingService
end
public abstract class CodeDomEventBindingService extends EventBindingService
The CodeDomEventBindingService type exposes the following members.
Constructors
Name | Description | |
---|---|---|
CodeDomEventBindingService | Initializes a new instance of CodeDomEventBindingService. |
Top
Properties
Name | Description | |
---|---|---|
CodeDomAdapter | Gets the code DOM data adapter. |
Top
Methods
Name | Description | |
---|---|---|
CreateUniqueMethodName | Creates a unique method name for the event. (Overrides EventBindingService.CreateUniqueMethodName(IComponent, EventDescriptor).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FreeMethod | Removes the specified method from the code if no event handlers are using it and it is empty. (Overrides EventBindingService.FreeMethod(IComponent, EventDescriptor, String).) | |
GetCompatibleMethods | Gets all the methods in the code DOM that are compatible with the specified event descriptor. (Overrides EventBindingService.GetCompatibleMethods(EventDescriptor).) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetService | Gets the requested service from the service provider. (Inherited from EventBindingService.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ShowCode() | Displays the code in the document data in the editor window. (Overrides EventBindingService.ShowCode.) | |
ShowCode(Int32) | Displays the code at the specified line. (Overrides EventBindingService.ShowCode(Int32).) | |
ShowCode(IComponent, EventDescriptor, String) | Shows the body of the user code with the given method name and event descriptor. (Overrides EventBindingService.ShowCode(IComponent, EventDescriptor, String).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UseMethod | Creates the method declaration for the given method name and event descriptor. (Overrides EventBindingService.UseMethod(IComponent, EventDescriptor, String).) | |
ValidateMethodName | Validates the name of the method. (Overrides EventBindingService.ValidateMethodName(String).) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
System#ComponentModel#Design#IEventBindingService#CreateUniqueMethodName | Creates a unique name for an event-handler method for the specified component and event. (Inherited from EventBindingService.) | |
System#ComponentModel#Design#IEventBindingService#GetCompatibleMethods | Gets a collection of event-handler methods that have a method signature compatible with the specified event. (Inherited from EventBindingService.) | |
System#ComponentModel#Design#IEventBindingService#GetEvent | Gets an EventDescriptor for the event that the specified property descriptor represents, if it represents an event. (Inherited from EventBindingService.) | |
System#ComponentModel#Design#IEventBindingService#GetEventProperties | Converts a set of event descriptors to a set of property descriptors. (Inherited from EventBindingService.) | |
System#ComponentModel#Design#IEventBindingService#GetEventProperty | Converts a single event descriptor to a property descriptor. (Inherited from EventBindingService.) | |
System#ComponentModel#Design#IEventBindingService#ShowCode | Displays the user code for the designer. (Inherited from EventBindingService.) | |
System#ComponentModel#Design#IEventBindingService#ShowCode(Int32) | Displays the user code for the designer at the specified line. (Inherited from EventBindingService.) | |
System#ComponentModel#Design#IEventBindingService#ShowCode(IComponent, EventDescriptor) | Displays the user code for the specified event. (Inherited from EventBindingService.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom Namespace