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
- RSAPKCS1SignatureDeformatter.cs
- TextSimpleMarkerProperties.cs
- ComboBox.cs
- Matrix.cs
- SpecialNameAttribute.cs
- SystemWebSectionGroup.cs
- WebPartManager.cs
- SymbolTable.cs
- SkinBuilder.cs
- SafeUserTokenHandle.cs
- UnsafeNativeMethods.cs
- TableCellAutomationPeer.cs
- SmtpAuthenticationManager.cs
- DiscoveryDocumentReference.cs
- VectorCollectionConverter.cs
- RemotingServices.cs
- LineSegment.cs
- TraceSwitch.cs
- DiscoveryDefaults.cs
- _NegoStream.cs
- RouteItem.cs
- sitestring.cs
- FileSystemEventArgs.cs
- FrameDimension.cs
- UpdateManifestForBrowserApplication.cs
- InternalCache.cs
- SingleObjectCollection.cs
- ActiveXHost.cs
- NativeDirectoryServicesQueryAPIs.cs
- AffineTransform3D.cs
- VSWCFServiceContractGenerator.cs
- DynamicField.cs
- DrawListViewItemEventArgs.cs
- GridViewCommandEventArgs.cs
- RegexCode.cs
- UInt64Converter.cs
- ApplicationActivator.cs
- ChannelProtectionRequirements.cs
- ReflectPropertyDescriptor.cs
- BuildProvidersCompiler.cs
- AssemblyCache.cs
- PersistNameAttribute.cs
- BasicViewGenerator.cs
- AttachmentService.cs
- SystemIcons.cs
- Win32Exception.cs
- TextShapeableCharacters.cs
- EvidenceTypeDescriptor.cs
- CodeDirectionExpression.cs
- RelatedImageListAttribute.cs
- StatusBarDrawItemEvent.cs
- DataGridTemplateColumn.cs
- RoutedPropertyChangedEventArgs.cs
- SqlRowUpdatedEvent.cs
- XamlReaderConstants.cs
- GcSettings.cs
- ContextActivityUtils.cs
- CDSCollectionETWBCLProvider.cs
- HMACSHA512.cs
- SyndicationElementExtensionCollection.cs
- PieceNameHelper.cs
- ObservableCollectionDefaultValueFactory.cs
- ButtonChrome.cs
- RequestQueryProcessor.cs
- QilDataSource.cs
- EditorPartCollection.cs
- CaseInsensitiveHashCodeProvider.cs
- assemblycache.cs
- ObjectDataSourceFilteringEventArgs.cs
- DataServiceHost.cs
- DateTimeOffsetStorage.cs
- HttpValueCollection.cs
- WebReferencesBuildProvider.cs
- ImageDrawing.cs
- AlignmentYValidation.cs
- CompilerErrorCollection.cs
- Splitter.cs
- BooleanStorage.cs
- indexingfiltermarshaler.cs
- DbReferenceCollection.cs
- ExpressionBuilderContext.cs
- ObjectStateEntry.cs
- DesignerActionUIService.cs
- TableColumn.cs
- XsdDataContractExporter.cs
- UrlMappingsSection.cs
- Site.cs
- Debug.cs
- ClientData.cs
- SingleAnimation.cs
- EndpointDispatcher.cs
- TemplateControlParser.cs
- OleDbParameterCollection.cs
- DefaultBindingPropertyAttribute.cs
- TreePrinter.cs
- AsyncSerializedWorker.cs
- ByteStack.cs
- CollectionViewProxy.cs
- SettingsPropertyValueCollection.cs
- CompilerWrapper.cs