Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / EventDescriptor.cs / 1 / EventDescriptor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Reflection; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] [System.Runtime.InteropServices.ComVisible(true)] public abstract class EventDescriptor : MemberDescriptor { ////// Provides a description /// of an event. /// ////// protected EventDescriptor(string name, Attribute[] attrs) : base(name, attrs) { } ////// Initializes a new instance of the ///class with the /// specified name and attribute /// array. /// /// protected EventDescriptor(MemberDescriptor descr) : base(descr) { } ////// Initializes a new instance of the ///class with the name and attributes in /// the specified /// . /// /// protected EventDescriptor(MemberDescriptor descr, Attribute[] attrs) : base(descr, attrs) { } ////// Initializes a new instance of the ///class with /// the name in the specified and the /// attributes in both the and the /// array. /// /// public abstract Type ComponentType { get; } ////// When overridden in a derived /// class, /// gets the type of the component this event is bound to. /// ////// public abstract Type EventType { get; } ////// When overridden in a derived /// class, gets the type of delegate for the event. /// ////// public abstract bool IsMulticast { get; } ////// When overridden in a derived class, gets a value /// indicating whether the event delegate is a multicast /// delegate. /// ////// public abstract void AddEventHandler(object component, Delegate value); ////// When overridden in /// a derived class, /// binds the event to the component. /// ////// public abstract void RemoveEventHandler(object component, Delegate value); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// When /// overridden /// in a derived class, unbinds the delegate from the /// component /// so that the delegate will no /// longer receive events from the component. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Reflection; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] [System.Runtime.InteropServices.ComVisible(true)] public abstract class EventDescriptor : MemberDescriptor { ////// Provides a description /// of an event. /// ////// protected EventDescriptor(string name, Attribute[] attrs) : base(name, attrs) { } ////// Initializes a new instance of the ///class with the /// specified name and attribute /// array. /// /// protected EventDescriptor(MemberDescriptor descr) : base(descr) { } ////// Initializes a new instance of the ///class with the name and attributes in /// the specified /// . /// /// protected EventDescriptor(MemberDescriptor descr, Attribute[] attrs) : base(descr, attrs) { } ////// Initializes a new instance of the ///class with /// the name in the specified and the /// attributes in both the and the /// array. /// /// public abstract Type ComponentType { get; } ////// When overridden in a derived /// class, /// gets the type of the component this event is bound to. /// ////// public abstract Type EventType { get; } ////// When overridden in a derived /// class, gets the type of delegate for the event. /// ////// public abstract bool IsMulticast { get; } ////// When overridden in a derived class, gets a value /// indicating whether the event delegate is a multicast /// delegate. /// ////// public abstract void AddEventHandler(object component, Delegate value); ////// When overridden in /// a derived class, /// binds the event to the component. /// ////// public abstract void RemoveEventHandler(object component, Delegate value); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// When /// overridden /// in a derived class, unbinds the delegate from the /// component /// so that the delegate will no /// longer receive events from the component. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityDocument.cs
- MailHeaderInfo.cs
- MouseEvent.cs
- ColorConverter.cs
- DataGridViewLinkColumn.cs
- SymbolEqualComparer.cs
- DbProviderFactoriesConfigurationHandler.cs
- ObjectParameterCollection.cs
- RMEnrollmentPage1.cs
- WebBrowsableAttribute.cs
- CardSpaceException.cs
- UIEndRequest.cs
- DrawListViewItemEventArgs.cs
- SizeAnimationUsingKeyFrames.cs
- ProcessThreadDesigner.cs
- ValidationRuleCollection.cs
- TabControl.cs
- TextInfo.cs
- TextServicesPropertyRanges.cs
- SafeBitVector32.cs
- ControlUtil.cs
- DefaultTraceListener.cs
- ToolStripDropDownItemDesigner.cs
- ToolStripSplitStackLayout.cs
- ColumnHeaderConverter.cs
- CacheChildrenQuery.cs
- SafeNativeMethods.cs
- TextSchema.cs
- WsdlServiceChannelBuilder.cs
- Attributes.cs
- DataStorage.cs
- BoundingRectTracker.cs
- Int32KeyFrameCollection.cs
- BitmapEffectGroup.cs
- SettingsPropertyNotFoundException.cs
- EpmSyndicationContentSerializer.cs
- OdbcUtils.cs
- SmiXetterAccessMap.cs
- ColorDialog.cs
- WindowAutomationPeer.cs
- TextContainerChangeEventArgs.cs
- LineInfo.cs
- DataServiceQueryException.cs
- SqlCachedBuffer.cs
- DeploymentSection.cs
- FilteredDataSetHelper.cs
- AppManager.cs
- XhtmlTextWriter.cs
- ConstNode.cs
- XmlSigningNodeWriter.cs
- HttpResponseHeader.cs
- ImageListImageEditor.cs
- RelatedView.cs
- AttributeCollection.cs
- ZipIOLocalFileDataDescriptor.cs
- FixedSOMPageElement.cs
- Page.cs
- SecurityState.cs
- FormParameter.cs
- Window.cs
- PersonalizationProviderCollection.cs
- HGlobalSafeHandle.cs
- BufferedStream2.cs
- FixUp.cs
- BaseInfoTable.cs
- TreeNode.cs
- SqlAliaser.cs
- CrossContextChannel.cs
- LayoutDump.cs
- TrustManager.cs
- CompositeFontFamily.cs
- SynchronizedCollection.cs
- FastEncoderWindow.cs
- RecipientIdentity.cs
- IUnknownConstantAttribute.cs
- ToolStripCodeDomSerializer.cs
- SqlRemoveConstantOrderBy.cs
- OleDbPermission.cs
- IntSecurity.cs
- EncoderReplacementFallback.cs
- TdsParserStaticMethods.cs
- DelegatingTypeDescriptionProvider.cs
- EntityDataSourceContainerNameItem.cs
- RequestSecurityToken.cs
- MiniCustomAttributeInfo.cs
- _RegBlobWebProxyDataBuilder.cs
- XmlSchemaDatatype.cs
- DbConnectionPoolGroupProviderInfo.cs
- ContentOnlyMessage.cs
- CheckedListBox.cs
- RouteItem.cs
- Unit.cs
- SimpleFieldTemplateUserControl.cs
- AssociationTypeEmitter.cs
- XmlAttributeAttribute.cs
- DataObject.cs
- ClientSettingsSection.cs
- Normalization.cs
- DBCommand.cs
- CustomCategoryAttribute.cs