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
- AggregateNode.cs
- Line.cs
- InteropTrackingRecord.cs
- Opcode.cs
- ZipIOCentralDirectoryFileHeader.cs
- Messages.cs
- SchemaName.cs
- Util.cs
- MemberInfoSerializationHolder.cs
- BitmapEffect.cs
- ConfigXmlComment.cs
- ApplicationFileParser.cs
- TableDetailsCollection.cs
- ILGenerator.cs
- XmlSchemaAnnotation.cs
- FileSystemInfo.cs
- Collection.cs
- RIPEMD160.cs
- ContextQuery.cs
- Rules.cs
- UniqueEventHelper.cs
- SymbolEqualComparer.cs
- LocalizeDesigner.cs
- CodeMemberMethod.cs
- connectionpool.cs
- ApplicationHost.cs
- Conditional.cs
- RenderingBiasValidation.cs
- CustomTrackingQuery.cs
- WindowsFormsHostPropertyMap.cs
- AdjustableArrowCap.cs
- MetaModel.cs
- ColorAnimationBase.cs
- DataGrid.cs
- Permission.cs
- CodeSnippetExpression.cs
- RoleManagerEventArgs.cs
- ImageKeyConverter.cs
- StaticContext.cs
- ProfileInfo.cs
- XmlDocumentFragment.cs
- CompilerTypeWithParams.cs
- Range.cs
- SqlNodeAnnotations.cs
- StrongNamePublicKeyBlob.cs
- Point3DCollectionValueSerializer.cs
- SqlCacheDependencyDatabase.cs
- MSG.cs
- LineServicesCallbacks.cs
- SinglePageViewer.cs
- SystemDropShadowChrome.cs
- CodeGen.cs
- ClientScriptItemCollection.cs
- StorageScalarPropertyMapping.cs
- SurrogateChar.cs
- WebException.cs
- CodeCastExpression.cs
- OperatingSystemVersionCheck.cs
- Script.cs
- XmlCharCheckingReader.cs
- RegexWorker.cs
- HostedTransportConfigurationManager.cs
- COM2ICategorizePropertiesHandler.cs
- ProgressBarHighlightConverter.cs
- ColorTransform.cs
- CqlBlock.cs
- ButtonChrome.cs
- Ops.cs
- EntityAdapter.cs
- BitmapEffectGeneralTransform.cs
- DataControlFieldCell.cs
- DNS.cs
- Parallel.cs
- HttpServerVarsCollection.cs
- ProtocolElementCollection.cs
- GridViewCellAutomationPeer.cs
- ArrangedElementCollection.cs
- HttpRequestWrapper.cs
- PropertyToken.cs
- MulticastOption.cs
- WebSysDisplayNameAttribute.cs
- UInt64.cs
- TdsParserSafeHandles.cs
- IconBitmapDecoder.cs
- StreamGeometryContext.cs
- GrabHandleGlyph.cs
- Rect3D.cs
- SQLUtility.cs
- XPathExpr.cs
- PageBreakRecord.cs
- HwndHostAutomationPeer.cs
- XmlWrappingReader.cs
- MetadataHelper.cs
- NullRuntimeConfig.cs
- NumberFormatInfo.cs
- DbProviderManifest.cs
- ObjectTypeMapping.cs
- WorkflowTerminatedException.cs
- XPathBuilder.cs
- XmlPreloadedResolver.cs