Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XmlWriterSettings.cs
- SmiMetaDataProperty.cs
- LinqDataSourceInsertEventArgs.cs
- SymDocumentType.cs
- SkipStoryboardToFill.cs
- MissingManifestResourceException.cs
- OdbcInfoMessageEvent.cs
- Vector3D.cs
- BamlRecords.cs
- ProxyManager.cs
- DecimalStorage.cs
- SpnEndpointIdentityExtension.cs
- Module.cs
- AppSettingsSection.cs
- Publisher.cs
- Assembly.cs
- CollectionChange.cs
- ContextQuery.cs
- SystemDropShadowChrome.cs
- InternalControlCollection.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- login.cs
- IgnoreFlushAndCloseStream.cs
- ClientRequest.cs
- AssemblyAssociatedContentFileAttribute.cs
- TimeSpanConverter.cs
- ByteStream.cs
- DynamicPropertyReader.cs
- ForeignKeyConstraint.cs
- WindowsButton.cs
- DataGridViewRowsRemovedEventArgs.cs
- brushes.cs
- URLAttribute.cs
- ComponentConverter.cs
- InputScopeConverter.cs
- CompatibleIComparer.cs
- DisplayNameAttribute.cs
- PropertyMapper.cs
- ViewGenResults.cs
- ActiveXHost.cs
- CustomErrorsSection.cs
- SQLByte.cs
- DataSourceCacheDurationConverter.cs
- SqlBulkCopyColumnMappingCollection.cs
- CategoryNameCollection.cs
- IdentityReference.cs
- RuleEngine.cs
- StringValidatorAttribute.cs
- RewritingProcessor.cs
- RotateTransform.cs
- UrlAuthFailedErrorFormatter.cs
- ListItemParagraph.cs
- StdValidatorsAndConverters.cs
- RoleService.cs
- ScrollBar.cs
- TrustManagerPromptUI.cs
- ResourceExpression.cs
- EntityDataSourceValidationException.cs
- DateTimeFormatInfoScanner.cs
- Process.cs
- ScaleTransform.cs
- SystemIPInterfaceStatistics.cs
- NavigationHelper.cs
- CopyNamespacesAction.cs
- SchemaNames.cs
- Utilities.cs
- ViewStateException.cs
- HttpContext.cs
- XmlNamespaceDeclarationsAttribute.cs
- KeyManager.cs
- CaretElement.cs
- MetafileHeaderWmf.cs
- InfoCardBaseException.cs
- PageCatalogPart.cs
- CursorConverter.cs
- EventDescriptorCollection.cs
- Transform3D.cs
- WebPartCatalogAddVerb.cs
- HtmlShim.cs
- IIS7WorkerRequest.cs
- CurrencyManager.cs
- TdsParserStaticMethods.cs
- XmlCollation.cs
- XmlNamespaceDeclarationsAttribute.cs
- StringUtil.cs
- FontNameEditor.cs
- HttpRequest.cs
- TreeView.cs
- APCustomTypeDescriptor.cs
- xamlnodes.cs
- entityreference_tresulttype.cs
- ProgressBarAutomationPeer.cs
- ToolStripGripRenderEventArgs.cs
- PrePrepareMethodAttribute.cs
- VisualStateManager.cs
- BuildManager.cs
- GeneralTransformGroup.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- MatrixCamera.cs
- ColorKeyFrameCollection.cs