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
- IgnoreFileBuildProvider.cs
- KnownBoxes.cs
- EnumerableValidator.cs
- WithParamAction.cs
- ListBindingConverter.cs
- XamlWrappingReader.cs
- AdCreatedEventArgs.cs
- remotingproxy.cs
- DocumentOutline.cs
- InputEventArgs.cs
- Msec.cs
- EventDescriptorCollection.cs
- HtmlControl.cs
- CollectionsUtil.cs
- MatrixKeyFrameCollection.cs
- TrackingProvider.cs
- ExtendedProtectionPolicy.cs
- ErrorBehavior.cs
- ListControlActionList.cs
- UniqueIdentifierService.cs
- CacheRequest.cs
- DiscoveryInnerClientAdhocCD1.cs
- JsonStringDataContract.cs
- ExpanderAutomationPeer.cs
- CollectionBuilder.cs
- SamlAssertionKeyIdentifierClause.cs
- SecurityKeyIdentifierClause.cs
- SoapAttributeAttribute.cs
- FrameworkTextComposition.cs
- MetadataPropertyvalue.cs
- BaseTemplateBuildProvider.cs
- _NativeSSPI.cs
- XmlWrappingReader.cs
- ColumnMapProcessor.cs
- OpenTypeLayout.cs
- TemplateField.cs
- CodePageUtils.cs
- HtmlFormParameterReader.cs
- BindingNavigator.cs
- DrawingContextWalker.cs
- EntityTransaction.cs
- InputChannelAcceptor.cs
- TypeForwardedToAttribute.cs
- XamlFxTrace.cs
- EntityDesignerBuildProvider.cs
- TimeSpanMinutesConverter.cs
- DbDeleteCommandTree.cs
- XslException.cs
- Literal.cs
- DragEvent.cs
- ButtonChrome.cs
- MultiTrigger.cs
- WebServiceData.cs
- MergeExecutor.cs
- ImpersonationContext.cs
- MarkupProperty.cs
- TextClipboardData.cs
- MenuItemCollectionEditor.cs
- Content.cs
- odbcmetadatacollectionnames.cs
- HintTextMaxWidthConverter.cs
- ContractInstanceProvider.cs
- RestHandlerFactory.cs
- DataGridViewLinkColumn.cs
- PropertyMetadata.cs
- WpfSharedXamlSchemaContext.cs
- Pair.cs
- RequiredFieldValidator.cs
- WorkflowOwnershipException.cs
- Inline.cs
- DetailsViewCommandEventArgs.cs
- SafeNativeMethodsMilCoreApi.cs
- SafeEventLogWriteHandle.cs
- DrawListViewColumnHeaderEventArgs.cs
- LogAppendAsyncResult.cs
- UrlAuthFailedErrorFormatter.cs
- PriorityRange.cs
- DesignUtil.cs
- XmlWrappingReader.cs
- XmlSerializerAssemblyAttribute.cs
- TraceSection.cs
- ContractDescription.cs
- BinaryCommonClasses.cs
- ConfigurationSectionGroup.cs
- WebCategoryAttribute.cs
- OpenFileDialog.cs
- QueryableFilterRepeater.cs
- ActivityMarkupSerializer.cs
- ShutDownListener.cs
- Pkcs7Recipient.cs
- LineMetrics.cs
- DbInsertCommandTree.cs
- DateRangeEvent.cs
- SqlDependency.cs
- HostingPreferredMapPath.cs
- Calendar.cs
- FieldNameLookup.cs
- ApplicationActivator.cs
- SymDocumentType.cs
- NumberFormatInfo.cs