Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- EnumType.cs
- ServiceNotStartedException.cs
- TraceLevelStore.cs
- JournalEntryListConverter.cs
- MulticastOption.cs
- BaseValidator.cs
- WebPartTransformerCollection.cs
- DataServiceProcessingPipeline.cs
- LocalizationComments.cs
- StateDesigner.CommentLayoutGlyph.cs
- HintTextMaxWidthConverter.cs
- EntityRecordInfo.cs
- ObjectQueryProvider.cs
- ProtocolsConfiguration.cs
- HotSpot.cs
- HtmlObjectListAdapter.cs
- ResourceDictionaryCollection.cs
- MenuItemCollection.cs
- HwndHostAutomationPeer.cs
- DragDropManager.cs
- CorrelationToken.cs
- ScriptResourceHandler.cs
- DoubleAnimationUsingKeyFrames.cs
- ManipulationDeltaEventArgs.cs
- AvTraceDetails.cs
- TypeExtensions.cs
- XpsColorContext.cs
- RectangleHotSpot.cs
- ToolStripMenuItem.cs
- InputLanguageCollection.cs
- CatalogZoneBase.cs
- MenuItemStyle.cs
- TextLineBreak.cs
- ReadWriteSpinLock.cs
- AutoCompleteStringCollection.cs
- RunInstallerAttribute.cs
- ClientScriptManagerWrapper.cs
- SqlTransaction.cs
- EntityTransaction.cs
- ReflectTypeDescriptionProvider.cs
- TableAdapterManagerNameHandler.cs
- UTF8Encoding.cs
- UIPermission.cs
- DataSourceListEditor.cs
- InkSerializer.cs
- RoutedEventConverter.cs
- SecurityContextTokenCache.cs
- ConfigurationStrings.cs
- DefaultTextStoreTextComposition.cs
- Encoder.cs
- StylusSystemGestureEventArgs.cs
- OdbcException.cs
- LabelTarget.cs
- Rotation3DAnimation.cs
- SqlConnectionHelper.cs
- SmiContext.cs
- QueueSurrogate.cs
- VerificationAttribute.cs
- XPathMultyIterator.cs
- Utils.cs
- Thumb.cs
- TypeElement.cs
- RtfControlWordInfo.cs
- VerificationAttribute.cs
- InfoCardTraceRecord.cs
- Tile.cs
- ProtocolViolationException.cs
- ping.cs
- XamlValidatingReader.cs
- MessageSmuggler.cs
- RequestCachePolicy.cs
- ObjectListCommandEventArgs.cs
- ThemeableAttribute.cs
- SelectionListComponentEditor.cs
- HTMLTextWriter.cs
- XmlWriterSettings.cs
- DictationGrammar.cs
- IsolationInterop.cs
- ListItemParagraph.cs
- PropertyExpression.cs
- WorkflowRuntimeSection.cs
- RegularExpressionValidator.cs
- VersionedStream.cs
- CommandHelpers.cs
- BufferedWebEventProvider.cs
- SimpleWebHandlerParser.cs
- BlockExpression.cs
- ComponentEditorForm.cs
- AuthenticationSchemesHelper.cs
- WizardForm.cs
- GradientPanel.cs
- HuffCodec.cs
- StateMachineSubscriptionManager.cs
- MethodRental.cs
- ResourceSetExpression.cs
- LinearGradientBrush.cs
- BlobPersonalizationState.cs
- CompilerParameters.cs
- XamlSerializer.cs
- WmlLiteralTextAdapter.cs