C# 클래스 System.ComponentModel.ReflectEventDescriptor

상속: System.ComponentModel.EventDescriptor
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
AddEventHandler ( object component, Delegate value ) : void

This adds the delegate value as a listener to when this event is fired by the component, invoking the addOnXXX method.

ReflectEventDescriptor ( Type componentType, System.ComponentModel.EventDescriptor oldReflectEventDescriptor, Attribute attributes ) : System.Collections

This constructor takes an existing ReflectEventDescriptor and modifies it by merging in the passed-in attributes.

ReflectEventDescriptor ( Type componentClass, EventInfo eventInfo ) : System.Collections
ReflectEventDescriptor ( Type componentClass, string name, Type type, Attribute attributes ) : System.Collections

This is the main constructor for an ReflectEventDescriptor.

RemoveEventHandler ( object component, Delegate value ) : void

This will remove the delegate value from the event chain so that it no longer gets events from this component.

보호된 메소드들

메소드 설명
FillAttributes ( IList attributes ) : void

비공개 메소드들

메소드 설명
FillEventInfoAttribute ( EventInfo realEventInfo, IList attributes ) : void
FillMethods ( ) : void

This fills the get and set method fields of the event info. It is shared by the various constructors.

FillSingleMethodAttribute ( MethodInfo realMethodInfo, IList attributes ) : void

메소드 상세

AddEventHandler() 공개 메소드

This adds the delegate value as a listener to when this event is fired by the component, invoking the addOnXXX method.
public AddEventHandler ( object component, Delegate value ) : void
component object
value System.Delegate
리턴 void

FillAttributes() 보호된 메소드

protected FillAttributes ( IList attributes ) : void
attributes IList
리턴 void

ReflectEventDescriptor() 공개 메소드

This constructor takes an existing ReflectEventDescriptor and modifies it by merging in the passed-in attributes.
public ReflectEventDescriptor ( Type componentType, System.ComponentModel.EventDescriptor oldReflectEventDescriptor, Attribute attributes ) : System.Collections
componentType System.Type
oldReflectEventDescriptor System.ComponentModel.EventDescriptor
attributes System.Attribute
리턴 System.Collections

ReflectEventDescriptor() 공개 메소드

public ReflectEventDescriptor ( Type componentClass, EventInfo eventInfo ) : System.Collections
componentClass System.Type
eventInfo System.Reflection.EventInfo
리턴 System.Collections

ReflectEventDescriptor() 공개 메소드

This is the main constructor for an ReflectEventDescriptor.
public ReflectEventDescriptor ( Type componentClass, string name, Type type, Attribute attributes ) : System.Collections
componentClass System.Type
name string
type System.Type
attributes System.Attribute
리턴 System.Collections

RemoveEventHandler() 공개 메소드

This will remove the delegate value from the event chain so that it no longer gets events from this component.
public RemoveEventHandler ( object component, Delegate value ) : void
component object
value System.Delegate
리턴 void