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
- HttpContextServiceHost.cs
- XPathNodePointer.cs
- AnnotationHighlightLayer.cs
- DataServiceQueryProvider.cs
- ControlPropertyNameConverter.cs
- TablePatternIdentifiers.cs
- CdpEqualityComparer.cs
- MemoryRecordBuffer.cs
- PipelineModuleStepContainer.cs
- OleAutBinder.cs
- MemoryFailPoint.cs
- HuffmanTree.cs
- CommonObjectSecurity.cs
- CredentialCache.cs
- AmbientProperties.cs
- PageThemeParser.cs
- HistoryEventArgs.cs
- SimpleFileLog.cs
- ErrorLog.cs
- DeclarativeCatalogPart.cs
- DataGridViewRowConverter.cs
- FormViewModeEventArgs.cs
- RightsManagementPermission.cs
- FragmentQueryKB.cs
- WindowsListViewGroupHelper.cs
- UnsafeNativeMethods.cs
- DataGridViewColumnEventArgs.cs
- SignedXml.cs
- Version.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- CodeAccessSecurityEngine.cs
- DependencySource.cs
- Certificate.cs
- SizeValueSerializer.cs
- CellIdBoolean.cs
- safex509handles.cs
- WpfWebRequestHelper.cs
- AssociationTypeEmitter.cs
- SystemNetworkInterface.cs
- RuntimeIdentifierPropertyAttribute.cs
- OrderedDictionary.cs
- CreateUserErrorEventArgs.cs
- DiagnosticsConfiguration.cs
- ShapingEngine.cs
- StringToken.cs
- XmlValidatingReaderImpl.cs
- FieldNameLookup.cs
- CodeLabeledStatement.cs
- XsdCachingReader.cs
- Message.cs
- DictionaryBase.cs
- ByteConverter.cs
- _SslStream.cs
- SqlUserDefinedTypeAttribute.cs
- Operators.cs
- DbDataAdapter.cs
- TypeConverterMarkupExtension.cs
- DES.cs
- StrokeIntersection.cs
- ConnectionManagementElementCollection.cs
- HttpException.cs
- XmlSerializerVersionAttribute.cs
- ProjectionPlanCompiler.cs
- NativeBuffer.cs
- ToolTipAutomationPeer.cs
- AnnotationDocumentPaginator.cs
- AsyncOperation.cs
- ServicePointManagerElement.cs
- StronglyTypedResourceBuilder.cs
- InplaceBitmapMetadataWriter.cs
- FindCriteriaApril2005.cs
- XmlUtf8RawTextWriter.cs
- ImageAttributes.cs
- HealthMonitoringSectionHelper.cs
- ResizeGrip.cs
- XmlWriterSettings.cs
- TextContainerHelper.cs
- RegexWriter.cs
- SecurityRuntime.cs
- AbstractDataSvcMapFileLoader.cs
- ITreeGenerator.cs
- WsdlEndpointConversionContext.cs
- TTSEngineTypes.cs
- WriteTimeStream.cs
- MulticastOption.cs
- GridItemProviderWrapper.cs
- WindowsListViewGroupHelper.cs
- ListViewItemMouseHoverEvent.cs
- mda.cs
- StrongNameUtility.cs
- TripleDES.cs
- TabControlEvent.cs
- regiisutil.cs
- ModuleConfigurationInfo.cs
- XmlDataSourceDesigner.cs
- SqlExpander.cs
- AssemblyUtil.cs
- DtrList.cs
- PerformanceCounterPermissionEntryCollection.cs
- UInt64Converter.cs