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
- _NtlmClient.cs
- SimpleColumnProvider.cs
- SHA1CryptoServiceProvider.cs
- QueryException.cs
- XmlSerializerSection.cs
- SpecialTypeDataContract.cs
- HttpCapabilitiesSectionHandler.cs
- WeakReferenceList.cs
- TrackingLocationCollection.cs
- UIPermission.cs
- ExpressionSelection.cs
- basemetadatamappingvisitor.cs
- AppearanceEditorPart.cs
- HttpEncoderUtility.cs
- GradientBrush.cs
- UrlMappingsModule.cs
- AdapterDictionary.cs
- BooleanStorage.cs
- InfoCardAsymmetricCrypto.cs
- NamespaceInfo.cs
- EntityDataSourceMemberPath.cs
- DocumentOrderComparer.cs
- AppDomainAttributes.cs
- Parameter.cs
- LambdaCompiler.Lambda.cs
- DoWorkEventArgs.cs
- MergablePropertyAttribute.cs
- WebPartRestoreVerb.cs
- MemoryMappedView.cs
- DocumentViewerHelper.cs
- ToolboxCategory.cs
- SafeEventLogWriteHandle.cs
- PartialClassGenerationTaskInternal.cs
- GregorianCalendarHelper.cs
- FormsAuthenticationModule.cs
- AtomMaterializer.cs
- LockedHandleGlyph.cs
- OdbcConnectionFactory.cs
- FontStyle.cs
- Binding.cs
- Menu.cs
- securestring.cs
- SqlSelectClauseBuilder.cs
- StyleSelector.cs
- TriggerActionCollection.cs
- CryptoStream.cs
- PolicyUtility.cs
- ScrollChrome.cs
- NodeLabelEditEvent.cs
- Brush.cs
- QilChoice.cs
- contentDescriptor.cs
- PreProcessInputEventArgs.cs
- RootBrowserWindowAutomationPeer.cs
- Int16AnimationBase.cs
- TransformerTypeCollection.cs
- SymDocumentType.cs
- WindowVisualStateTracker.cs
- UIPermission.cs
- KeysConverter.cs
- Quad.cs
- ExtendedPropertyDescriptor.cs
- NameValueSectionHandler.cs
- BinaryFormatter.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- TypeConverterValueSerializer.cs
- ControlSerializer.cs
- AppSettingsReader.cs
- BindingOperations.cs
- CallbackValidatorAttribute.cs
- AppearanceEditorPart.cs
- TrustVersion.cs
- UpdateExpressionVisitor.cs
- HttpRawResponse.cs
- ComponentManagerBroker.cs
- UnconditionalPolicy.cs
- XmlSchemaImporter.cs
- ServiceChannel.cs
- KnownTypeAttribute.cs
- BaseAddressPrefixFilterElement.cs
- X509UI.cs
- CallbackDebugBehavior.cs
- FloatUtil.cs
- TransformValueSerializer.cs
- AgileSafeNativeMemoryHandle.cs
- CommittableTransaction.cs
- ReferenceConverter.cs
- SettingsProviderCollection.cs
- TransactionManager.cs
- HtmlTable.cs
- MultiByteCodec.cs
- PagesSection.cs
- Paragraph.cs
- TextBoxAutoCompleteSourceConverter.cs
- TextBox.cs
- SeparatorAutomationPeer.cs
- dataprotectionpermission.cs
- WindowsFont.cs
- ModifierKeysValueSerializer.cs
- LogEntry.cs