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
- SynchronousChannelMergeEnumerator.cs
- XsdDuration.cs
- ManagementQuery.cs
- TextParentUndoUnit.cs
- PageRouteHandler.cs
- SiteMapPath.cs
- StylusPointProperties.cs
- BitmapEffectInput.cs
- FixedNode.cs
- MutexSecurity.cs
- NativeWindow.cs
- ExpandCollapseProviderWrapper.cs
- PeerContact.cs
- SingleSelectRootGridEntry.cs
- TypeElement.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- CannotUnloadAppDomainException.cs
- SafeFileMappingHandle.cs
- dbenumerator.cs
- CategoryGridEntry.cs
- SinglePhaseEnlistment.cs
- CreateUserWizard.cs
- WinFormsSpinner.cs
- SmiMetaDataProperty.cs
- SQLString.cs
- ValidatorCompatibilityHelper.cs
- Group.cs
- RegexGroupCollection.cs
- TableDetailsCollection.cs
- SystemResources.cs
- DiffuseMaterial.cs
- SystemUnicastIPAddressInformation.cs
- DesignerActionHeaderItem.cs
- ItemAutomationPeer.cs
- HttpCapabilitiesBase.cs
- IisTraceWebEventProvider.cs
- TextSchema.cs
- HttpPostedFileBase.cs
- EditorZone.cs
- XamlDesignerSerializationManager.cs
- MenuRendererStandards.cs
- EmptyEnumerator.cs
- EditingMode.cs
- ConnectionConsumerAttribute.cs
- LocalizedNameDescriptionPair.cs
- DtrList.cs
- IDReferencePropertyAttribute.cs
- WebPartMenu.cs
- SystemException.cs
- ZipIOExtraField.cs
- LocalizationComments.cs
- UnsafeNativeMethods.cs
- ViewDesigner.cs
- TextBoxBase.cs
- PackWebRequestFactory.cs
- BeginStoryboard.cs
- _HelperAsyncResults.cs
- LinkedResourceCollection.cs
- M3DUtil.cs
- GenericPrincipal.cs
- ServiceSecurityAuditBehavior.cs
- IdnMapping.cs
- ServiceNameElement.cs
- TypeReference.cs
- InlineObject.cs
- SQLInt64.cs
- RoleGroupCollection.cs
- MenuRendererStandards.cs
- CodeIdentifier.cs
- SqlTypesSchemaImporter.cs
- SqlClientFactory.cs
- ObjectDataSourceMethodEditor.cs
- ArithmeticLiteral.cs
- MetadataUtil.cs
- ObjectConverter.cs
- SemaphoreSecurity.cs
- SQLBoolean.cs
- EntityType.cs
- FloaterParagraph.cs
- ICollection.cs
- LayoutTableCell.cs
- SpellerInterop.cs
- WorkflowView.cs
- SolidColorBrush.cs
- RepeatButton.cs
- _CommandStream.cs
- ContractSearchPattern.cs
- ContainerUIElement3D.cs
- QilGenerator.cs
- UpdateTracker.cs
- DropShadowEffect.cs
- SizeF.cs
- StackOverflowException.cs
- SizeValueSerializer.cs
- PixelShader.cs
- DataServiceQueryOfT.cs
- RootNamespaceAttribute.cs
- ScrollPattern.cs
- AccessedThroughPropertyAttribute.cs
- SmtpException.cs