Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FileDialogCustomPlacesCollection.cs
- FormViewUpdateEventArgs.cs
- XmlSchemaComplexContent.cs
- cryptoapiTransform.cs
- ConfigurationErrorsException.cs
- AnchorEditor.cs
- TransformProviderWrapper.cs
- ManipulationDeltaEventArgs.cs
- LabelAutomationPeer.cs
- TextPenaltyModule.cs
- FontStyles.cs
- CodeExpressionCollection.cs
- DataGridViewRowHeaderCell.cs
- Group.cs
- DataRelationCollection.cs
- HttpHandlerAction.cs
- EditorPartChrome.cs
- QueryOperatorEnumerator.cs
- ObjectHelper.cs
- SchemaComplexType.cs
- PackageRelationshipCollection.cs
- ObjectParameter.cs
- PageAsyncTaskManager.cs
- EntityDataSourceContainerNameItem.cs
- DataColumnChangeEvent.cs
- PageEventArgs.cs
- PartialTrustVisibleAssembly.cs
- CodeCatchClauseCollection.cs
- PrivilegedConfigurationManager.cs
- XpsFilter.cs
- TypeExtension.cs
- PropertyTabAttribute.cs
- HttpServerVarsCollection.cs
- FileDialogPermission.cs
- TreeView.cs
- ConfigurationStrings.cs
- StatusBar.cs
- ASCIIEncoding.cs
- CaseInsensitiveHashCodeProvider.cs
- RuleValidation.cs
- LineServices.cs
- PreservationFileWriter.cs
- URLAttribute.cs
- MenuItem.cs
- Camera.cs
- AbsoluteQuery.cs
- LoginName.cs
- MenuItem.cs
- SqlFunctionAttribute.cs
- StackSpiller.cs
- RelationshipType.cs
- GenericTypeParameterBuilder.cs
- WebPartConnectionsConnectVerb.cs
- XmlILStorageConverter.cs
- ProcessManager.cs
- OneOf.cs
- BinaryReader.cs
- EffectiveValueEntry.cs
- Rotation3D.cs
- AssemblyNameProxy.cs
- WindowHideOrCloseTracker.cs
- RegionData.cs
- DocumentOrderQuery.cs
- DependentTransaction.cs
- ItemsChangedEventArgs.cs
- CorrelationManager.cs
- MetadataItemCollectionFactory.cs
- DragDropManager.cs
- RtType.cs
- initElementDictionary.cs
- DiscoveryVersionConverter.cs
- KeyEvent.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- DBSqlParserColumn.cs
- CompiledXpathExpr.cs
- PolyQuadraticBezierSegment.cs
- ConsoleTraceListener.cs
- SelectionRange.cs
- WindowsSolidBrush.cs
- ClientUrlResolverWrapper.cs
- WorkflowValidationFailedException.cs
- embossbitmapeffect.cs
- EmptyReadOnlyDictionaryInternal.cs
- ProcessThread.cs
- EdmFunctions.cs
- DesignerCalendarAdapter.cs
- ArrayExtension.cs
- TextBreakpoint.cs
- DbUpdateCommandTree.cs
- Token.cs
- HttpResponseHeader.cs
- ConvertBinder.cs
- DeferredSelectedIndexReference.cs
- PortCache.cs
- SmtpReplyReader.cs
- AudioBase.cs
- FloaterBaseParagraph.cs
- EntityCommandCompilationException.cs
- Stack.cs
- QuadraticBezierSegment.cs