Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ExceptionUtil.cs
- MachineKeySection.cs
- ByteKeyFrameCollection.cs
- TypeUsage.cs
- WebBrowserNavigatingEventHandler.cs
- ValueType.cs
- CopyOnWriteList.cs
- SendingRequestEventArgs.cs
- SerTrace.cs
- ConversionHelper.cs
- XmlResolver.cs
- _BufferOffsetSize.cs
- QueryComponents.cs
- URLString.cs
- DataControlPagerLinkButton.cs
- ButtonChrome.cs
- XmlProcessingInstruction.cs
- CollectionViewGroupRoot.cs
- PrintController.cs
- CodeDomConfigurationHandler.cs
- Int32RectValueSerializer.cs
- Transform3D.cs
- Track.cs
- InvalidFilterCriteriaException.cs
- ResourcePart.cs
- QueryCursorEventArgs.cs
- TableCell.cs
- SystemTcpStatistics.cs
- CodeAttributeArgument.cs
- SurrogateSelector.cs
- VariableQuery.cs
- StringPropertyBuilder.cs
- Style.cs
- ByteStack.cs
- GridViewSortEventArgs.cs
- HtmlToClrEventProxy.cs
- XmlILAnnotation.cs
- XmlDocumentType.cs
- ExpressionNode.cs
- Menu.cs
- ApplicationProxyInternal.cs
- DataViewSetting.cs
- TreeNodeCollection.cs
- ComplexType.cs
- CompositeDataBoundControl.cs
- NavigationWindow.cs
- TextServicesDisplayAttributePropertyRanges.cs
- XmlSchemaSubstitutionGroup.cs
- CommonProperties.cs
- RowParagraph.cs
- PopupRoot.cs
- XPathEmptyIterator.cs
- RegexMatchCollection.cs
- _DisconnectOverlappedAsyncResult.cs
- KeyValueSerializer.cs
- RegexBoyerMoore.cs
- DesignSurfaceServiceContainer.cs
- PinnedBufferMemoryStream.cs
- BindingCompleteEventArgs.cs
- Geometry.cs
- TiffBitmapEncoder.cs
- CollectionViewGroupRoot.cs
- CodeTypeOfExpression.cs
- CodeTypeDelegate.cs
- ObjectItemAttributeAssemblyLoader.cs
- XmlQualifiedName.cs
- DataTableReaderListener.cs
- XamlGridLengthSerializer.cs
- DocumentEventArgs.cs
- Lasso.cs
- CodeVariableDeclarationStatement.cs
- MobileSysDescriptionAttribute.cs
- UInt64.cs
- DefaultTraceListener.cs
- EntityDataSourceValidationException.cs
- Header.cs
- TextParagraph.cs
- SecurityUtils.cs
- SchemaAttDef.cs
- DoubleAnimationClockResource.cs
- EdmProperty.cs
- XPathNodeIterator.cs
- LiteralControl.cs
- XmlSchemaComplexContent.cs
- MdImport.cs
- AppSettingsExpressionBuilder.cs
- XPathNodeHelper.cs
- RtfToXamlLexer.cs
- RootAction.cs
- ExpressionBindingCollection.cs
- WSHttpTransportSecurityElement.cs
- WhitespaceRule.cs
- DateTimeValueSerializerContext.cs
- MessageQueuePermissionAttribute.cs
- DataGridTextColumn.cs
- ManagedFilter.cs
- PropertyChangedEventArgs.cs
- FixedHyperLink.cs
- DesignerInterfaces.cs
- COM2IProvidePropertyBuilderHandler.cs