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
- EnumMember.cs
- ProfilePropertySettings.cs
- FormatException.cs
- UniformGrid.cs
- PeerNearMe.cs
- ReaderWriterLock.cs
- SqlAliaser.cs
- BufferedGraphicsManager.cs
- oledbmetadatacollectionnames.cs
- SafeNativeMethods.cs
- WebPartEditorApplyVerb.cs
- CqlParserHelpers.cs
- DrawListViewItemEventArgs.cs
- IgnorePropertiesAttribute.cs
- AspCompat.cs
- Assembly.cs
- AnnouncementEndpointElement.cs
- Pipe.cs
- SafeThemeHandle.cs
- log.cs
- ObjectQuery_EntitySqlExtensions.cs
- StorageMappingFragment.cs
- NeutralResourcesLanguageAttribute.cs
- SmtpCommands.cs
- _Connection.cs
- OleDbDataReader.cs
- Pens.cs
- VBIdentifierDesigner.xaml.cs
- DynamicEntity.cs
- RepeatBehavior.cs
- LastQueryOperator.cs
- BitConverter.cs
- DefaultSerializationProviderAttribute.cs
- FrugalList.cs
- XmlHierarchyData.cs
- Help.cs
- StateFinalizationActivity.cs
- RelationshipNavigation.cs
- StateDesigner.CommentLayoutGlyph.cs
- ConfigurationLocationCollection.cs
- documentsequencetextpointer.cs
- ScrollChrome.cs
- VectorAnimationBase.cs
- XmlNamespaceMapping.cs
- AtomicFile.cs
- UIPropertyMetadata.cs
- HtmlTable.cs
- RemoteHelper.cs
- SocketAddress.cs
- DataSourceSelectArguments.cs
- BitStack.cs
- ValidationError.cs
- RelOps.cs
- FontWeights.cs
- TemplateKey.cs
- XmlSchemaSimpleType.cs
- XomlCompilerHelpers.cs
- DynamicQueryableWrapper.cs
- StringUtil.cs
- uribuilder.cs
- MediaElement.cs
- AddInAdapter.cs
- NativeMethods.cs
- EditorZone.cs
- LineBreakRecord.cs
- InputLanguageProfileNotifySink.cs
- MonikerSyntaxException.cs
- AuthenticationException.cs
- PeerCollaboration.cs
- PropertyState.cs
- HybridObjectCache.cs
- ProcessModuleCollection.cs
- GB18030Encoding.cs
- IteratorFilter.cs
- OracleFactory.cs
- DATA_BLOB.cs
- ScrollBar.cs
- AsyncPostBackErrorEventArgs.cs
- SEHException.cs
- Registry.cs
- Process.cs
- CompilerState.cs
- StrongNameIdentityPermission.cs
- ExtenderProvidedPropertyAttribute.cs
- SynchronizationHandlesCodeDomSerializer.cs
- EventLogger.cs
- DataViewListener.cs
- HelpInfo.cs
- HyperLinkStyle.cs
- LifetimeServices.cs
- ConnectionStringSettings.cs
- SqlDataSourceEnumerator.cs
- TextServicesContext.cs
- ObjectViewListener.cs
- DbDataReader.cs
- RegexCompilationInfo.cs
- Misc.cs
- HttpNamespaceReservationInstallComponent.cs
- ObjectRef.cs
- ParserHooks.cs