Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / EventDescriptor.cs / 1305376 / 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
- SqlDataAdapter.cs
- OuterGlowBitmapEffect.cs
- XmlSerializerNamespaces.cs
- TemplateBamlTreeBuilder.cs
- WindowsListViewItemStartMenu.cs
- SortQuery.cs
- ExcCanonicalXml.cs
- InkCanvasInnerCanvas.cs
- FileDataSourceCache.cs
- IssuanceLicense.cs
- BinarySerializer.cs
- NativeActivityTransactionContext.cs
- XmlKeywords.cs
- LogLogRecordEnumerator.cs
- MenuAdapter.cs
- PathFigureCollection.cs
- JsonXmlDataContract.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ViewManager.cs
- NamespaceEmitter.cs
- Sql8ExpressionRewriter.cs
- Assembly.cs
- SystemIPv6InterfaceProperties.cs
- CleanUpVirtualizedItemEventArgs.cs
- DetailsViewRowCollection.cs
- RuleInfoComparer.cs
- StylusShape.cs
- DefaultHttpHandler.cs
- RegisteredDisposeScript.cs
- XmlSchemaAnyAttribute.cs
- TextBlockAutomationPeer.cs
- ComponentCache.cs
- SamlAttributeStatement.cs
- infer.cs
- BindingNavigator.cs
- DataTransferEventArgs.cs
- MethodCallConverter.cs
- StorageEntityTypeMapping.cs
- DataGridTableCollection.cs
- PreProcessInputEventArgs.cs
- Debug.cs
- ImageEditor.cs
- EventProviderWriter.cs
- FormattedText.cs
- ArraySet.cs
- TransportBindingElement.cs
- Storyboard.cs
- EventLog.cs
- StateMachineDesignerPaint.cs
- FreeFormDragDropManager.cs
- XmlBinaryReader.cs
- basevalidator.cs
- ObjectViewQueryResultData.cs
- SymLanguageType.cs
- FileReservationCollection.cs
- OneOfScalarConst.cs
- ScaleTransform3D.cs
- RegexWorker.cs
- RootDesignerSerializerAttribute.cs
- CodeTypeReferenceExpression.cs
- ColumnPropertiesGroup.cs
- HttpResponseHeader.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SimpleType.cs
- SupportsEventValidationAttribute.cs
- ConversionContext.cs
- PackWebRequestFactory.cs
- OdbcConnectionFactory.cs
- RegexMatchCollection.cs
- OpenFileDialog.cs
- Misc.cs
- ComponentChangingEvent.cs
- EntityDataReader.cs
- HttpModuleAction.cs
- XmlSecureResolver.cs
- ScopedKnownTypes.cs
- RowToFieldTransformer.cs
- HyperLinkColumn.cs
- Evaluator.cs
- WriterOutput.cs
- SoapHeader.cs
- XmlParser.cs
- x509utils.cs
- FontFamily.cs
- FilePrompt.cs
- TaiwanLunisolarCalendar.cs
- SrgsRule.cs
- MultiTrigger.cs
- MediaPlayerState.cs
- MoveSizeWinEventHandler.cs
- SiteMapSection.cs
- CheckoutException.cs
- ConversionContext.cs
- MediaPlayer.cs
- InputLanguageCollection.cs
- WebPartManagerInternals.cs
- BinaryConverter.cs
- DataGridViewRowCollection.cs
- CellTreeNodeVisitors.cs
- SoapTypeAttribute.cs