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
- MultiDataTrigger.cs
- PowerEase.cs
- Function.cs
- ProcessManager.cs
- Point3DAnimationUsingKeyFrames.cs
- WindowsStatic.cs
- PropertyDescriptors.cs
- WrapPanel.cs
- ApplicationTrust.cs
- COM2ComponentEditor.cs
- MessageSecurityOverTcpElement.cs
- Enum.cs
- PolyLineSegment.cs
- ImmutableAssemblyCacheEntry.cs
- QilIterator.cs
- RadialGradientBrush.cs
- SQLSingle.cs
- Vector3DIndependentAnimationStorage.cs
- DataPagerFieldCollection.cs
- HttpRequestCacheValidator.cs
- IsolatedStorageFileStream.cs
- RadialGradientBrush.cs
- Comparer.cs
- Clause.cs
- HyperLinkField.cs
- WebPartTransformerCollection.cs
- AttributeCollection.cs
- NameSpaceExtractor.cs
- DesignerLoader.cs
- DiscoveryClientProtocol.cs
- DataServiceResponse.cs
- TextEditorTables.cs
- ConfigurationErrorsException.cs
- BaseProcessor.cs
- DynamicEndpointElement.cs
- ParseElement.cs
- ToolBarOverflowPanel.cs
- TreeWalkHelper.cs
- CommentEmitter.cs
- RegexCompiler.cs
- XmlTextReaderImplHelpers.cs
- DocumentEventArgs.cs
- XmlNullResolver.cs
- __FastResourceComparer.cs
- ReadWriteSpinLock.cs
- MembershipSection.cs
- HttpListenerContext.cs
- EditorBrowsableAttribute.cs
- WorkflowRuntimeSection.cs
- ExtentJoinTreeNode.cs
- TableCellCollection.cs
- BasicViewGenerator.cs
- ExpressionSelection.cs
- WebServiceTypeData.cs
- GeometryConverter.cs
- SafeArrayTypeMismatchException.cs
- ToolStripDesigner.cs
- ProfileService.cs
- PreProcessInputEventArgs.cs
- KeyGestureValueSerializer.cs
- LambdaSerializationException.cs
- TrackingValidationObjectDictionary.cs
- RootBrowserWindowProxy.cs
- ColorConverter.cs
- ProviderConnectionPoint.cs
- Facet.cs
- XmlSchemaProviderAttribute.cs
- Accessible.cs
- ASCIIEncoding.cs
- PathFigureCollectionValueSerializer.cs
- FamilyCollection.cs
- DocumentGridContextMenu.cs
- HttpRequestCacheValidator.cs
- Timeline.cs
- SafeNativeMethodsOther.cs
- HttpModuleAction.cs
- PreviewKeyDownEventArgs.cs
- ExpressionPrinter.cs
- TransformPattern.cs
- NominalTypeEliminator.cs
- HttpWebRequestElement.cs
- WebPartHelpVerb.cs
- DefaultValidator.cs
- LoginName.cs
- SerializerWriterEventHandlers.cs
- EdmSchemaAttribute.cs
- SqlBuilder.cs
- GcSettings.cs
- PaperSize.cs
- EmptyStringExpandableObjectConverter.cs
- AsyncCodeActivity.cs
- ProgressBar.cs
- MulticastNotSupportedException.cs
- AttributeSetAction.cs
- StorageModelBuildProvider.cs
- DataSourceControlBuilder.cs
- DataServiceHostFactory.cs
- ModulesEntry.cs
- DocumentXmlWriter.cs
- ThreadStartException.cs