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
- SymmetricAlgorithm.cs
- RangeBase.cs
- PathGeometry.cs
- TextBounds.cs
- HeaderedContentControl.cs
- SqlTypeSystemProvider.cs
- HijriCalendar.cs
- SqlExpander.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- SqlClientPermission.cs
- DriveInfo.cs
- Events.cs
- ContextStaticAttribute.cs
- DBCommand.cs
- StoreUtilities.cs
- SafeSecurityHelper.cs
- GZipStream.cs
- Model3DCollection.cs
- IfAction.cs
- BlockExpression.cs
- ConfigurationValidatorBase.cs
- EventPrivateKey.cs
- AddInControllerImpl.cs
- XamlValidatingReader.cs
- ViewPort3D.cs
- DataSetFieldSchema.cs
- ThreadTrace.cs
- ImmutableAssemblyCacheEntry.cs
- SQLConvert.cs
- DataGridHeaderBorder.cs
- BuildProviderCollection.cs
- XmlSerializationWriter.cs
- PrtTicket_Public_Simple.cs
- OdbcConnectionStringbuilder.cs
- followingsibling.cs
- ExpressionPrefixAttribute.cs
- CompiledAction.cs
- UdpDiscoveryEndpointProvider.cs
- RemoveStoryboard.cs
- GridView.cs
- CredentialCache.cs
- SystemResourceKey.cs
- DSASignatureDeformatter.cs
- RandomNumberGenerator.cs
- XmlSchemaComplexContentExtension.cs
- QilList.cs
- ServiceReference.cs
- SingleAnimationBase.cs
- GlobalProxySelection.cs
- FormViewInsertEventArgs.cs
- StorageEntityTypeMapping.cs
- StateRuntime.cs
- HelpFileFileNameEditor.cs
- LongValidator.cs
- ColorDialog.cs
- TimelineGroup.cs
- XmlSerializerVersionAttribute.cs
- TemplateControlCodeDomTreeGenerator.cs
- ProfileProvider.cs
- SafeSecurityHandles.cs
- BaseConfigurationRecord.cs
- Repeater.cs
- AssociationType.cs
- filewebrequest.cs
- SHA512CryptoServiceProvider.cs
- UriTemplateDispatchFormatter.cs
- MachineSettingsSection.cs
- XmlSchemaComplexContentRestriction.cs
- _AutoWebProxyScriptEngine.cs
- StylusButtonCollection.cs
- TrackingStringDictionary.cs
- StreamMarshaler.cs
- CacheDependency.cs
- SubMenuStyle.cs
- Annotation.cs
- MemberRelationshipService.cs
- DataColumnCollection.cs
- ProxyWebPart.cs
- HttpValueCollection.cs
- MenuItemCollectionEditorDialog.cs
- AttributeAction.cs
- PenLineCapValidation.cs
- MemberPath.cs
- TypeDescriptorContext.cs
- ErrorHandlerModule.cs
- MouseWheelEventArgs.cs
- C14NUtil.cs
- TypeBuilder.cs
- Hashtable.cs
- EdmProperty.cs
- BindingList.cs
- StylusShape.cs
- MatrixAnimationUsingKeyFrames.cs
- InkCollectionBehavior.cs
- XamlFigureLengthSerializer.cs
- PerformanceCounter.cs
- InputLanguageCollection.cs
- RepeatBehavior.cs
- SoapEnumAttribute.cs
- CodeTypeMember.cs