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
- OrderedDictionaryStateHelper.cs
- ImageSourceConverter.cs
- QueryCacheEntry.cs
- BookmarkEventArgs.cs
- IgnoreFileBuildProvider.cs
- LinearKeyFrames.cs
- FormViewDeletedEventArgs.cs
- printdlgexmarshaler.cs
- SafeRightsManagementPubHandle.cs
- DataSourceXmlTextReader.cs
- NoneExcludedImageIndexConverter.cs
- FramingDecoders.cs
- ErrorInfoXmlDocument.cs
- XmlExpressionDumper.cs
- DebugView.cs
- SchemaCollectionCompiler.cs
- DataControlFieldCollection.cs
- HTMLTextWriter.cs
- FormsIdentity.cs
- SqlDataSourceConfigureFilterForm.cs
- CodeTryCatchFinallyStatement.cs
- CommandID.cs
- DefaultHttpHandler.cs
- Win32.cs
- CardSpacePolicyElement.cs
- ReadOnlyMetadataCollection.cs
- XPathItem.cs
- NotImplementedException.cs
- NetTcpSecurity.cs
- SliderAutomationPeer.cs
- DoubleConverter.cs
- SqlDataSourceSelectingEventArgs.cs
- DataTableMapping.cs
- BuildManagerHost.cs
- FontStretchConverter.cs
- EventProvider.cs
- RouteData.cs
- SingleConverter.cs
- SchemaImporter.cs
- SystemKeyConverter.cs
- ContentDesigner.cs
- SecurityTokenParametersEnumerable.cs
- TreeIterator.cs
- ComponentDesigner.cs
- TypeConverterAttribute.cs
- ProcessInputEventArgs.cs
- NativeMethods.cs
- WSDualHttpSecurityMode.cs
- StringAnimationUsingKeyFrames.cs
- DoubleAnimation.cs
- ImageResources.Designer.cs
- Table.cs
- RulePatternOps.cs
- EdmItemError.cs
- CodeSnippetCompileUnit.cs
- MenuItemAutomationPeer.cs
- ProcessHostServerConfig.cs
- AsyncResult.cs
- DeviceContexts.cs
- CodeGen.cs
- FormViewPageEventArgs.cs
- SmiRequestExecutor.cs
- DynamicValidatorEventArgs.cs
- TraceContextEventArgs.cs
- SqlGatherConsumedAliases.cs
- shaperfactoryquerycachekey.cs
- DataGridViewUtilities.cs
- ListControl.cs
- WebCategoryAttribute.cs
- PageParser.cs
- TraversalRequest.cs
- ProviderSettingsCollection.cs
- Regex.cs
- ICspAsymmetricAlgorithm.cs
- ResourceCollectionInfo.cs
- EventlogProvider.cs
- Stylesheet.cs
- CodeDirectoryCompiler.cs
- IncrementalHitTester.cs
- EncryptedKey.cs
- KoreanCalendar.cs
- HandlerBase.cs
- BitmapEffectInput.cs
- COM2TypeInfoProcessor.cs
- CopyNamespacesAction.cs
- AttributeProviderAttribute.cs
- HandlerFactoryCache.cs
- CodeCatchClause.cs
- _ScatterGatherBuffers.cs
- RtfToken.cs
- BitmapMetadata.cs
- HandleTable.cs
- TextBoxView.cs
- CompilerWrapper.cs
- PreservationFileWriter.cs
- HostedBindingBehavior.cs
- Command.cs
- RecognitionResult.cs
- CodeVariableReferenceExpression.cs
- Mutex.cs