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
- PackWebRequest.cs
- TreeNodeCollection.cs
- QilStrConcat.cs
- BinaryUtilClasses.cs
- XamlRtfConverter.cs
- Bidi.cs
- FormViewRow.cs
- CircleEase.cs
- AutomationPatternInfo.cs
- Run.cs
- InternalMappingException.cs
- GenericNameHandler.cs
- Listbox.cs
- XmlWrappingReader.cs
- AliasedSlot.cs
- XPathException.cs
- HostedHttpRequestAsyncResult.cs
- DataGridPagerStyle.cs
- SecureEnvironment.cs
- MediaCommands.cs
- InputLanguageCollection.cs
- InstanceHandle.cs
- WindowCollection.cs
- ExtendedPropertyInfo.cs
- TimeSpanSecondsConverter.cs
- TdsParserStaticMethods.cs
- BaseParaClient.cs
- RemotingService.cs
- OneOfTypeConst.cs
- SmtpReplyReader.cs
- ContextProperty.cs
- CodeTypeParameter.cs
- UpdatePanelTrigger.cs
- MergablePropertyAttribute.cs
- ReadWriteObjectLock.cs
- TogglePattern.cs
- NamedObject.cs
- ScriptReferenceEventArgs.cs
- TimeEnumHelper.cs
- HGlobalSafeHandle.cs
- FormViewDeletedEventArgs.cs
- BindingCollection.cs
- DispatcherFrame.cs
- SourceChangedEventArgs.cs
- RawMouseInputReport.cs
- UIElementHelper.cs
- arabicshape.cs
- ThreadStateException.cs
- Stacktrace.cs
- _IPv4Address.cs
- safelink.cs
- XmlSecureResolver.cs
- BaseProcessProtocolHandler.cs
- AtomicFile.cs
- TabControlCancelEvent.cs
- TreeNodeCollection.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- PackageController.cs
- IdleTimeoutMonitor.cs
- EventProxy.cs
- DebugHandleTracker.cs
- EmptyStringExpandableObjectConverter.cs
- Point3DCollectionConverter.cs
- DataIdProcessor.cs
- HttpResponse.cs
- LinkDesigner.cs
- StorageInfo.cs
- WebBrowserNavigatedEventHandler.cs
- FieldToken.cs
- DataGridViewColumn.cs
- QuotedPrintableStream.cs
- FieldAccessException.cs
- BamlStream.cs
- URI.cs
- FontEmbeddingManager.cs
- DataGridViewCellStyle.cs
- EntityDataSourceValidationException.cs
- SingletonConnectionReader.cs
- HMAC.cs
- XmlCharCheckingReader.cs
- SerializationAttributes.cs
- FtpCachePolicyElement.cs
- AuthenticationSection.cs
- NullableDoubleAverageAggregationOperator.cs
- BasicExpandProvider.cs
- InvalidPrinterException.cs
- XmlQueryType.cs
- AttachmentCollection.cs
- Int32KeyFrameCollection.cs
- SimplePropertyEntry.cs
- Query.cs
- AccessedThroughPropertyAttribute.cs
- UnsafeNativeMethods.cs
- GridView.cs
- MetricEntry.cs
- SdlChannelSink.cs
- ReturnValue.cs
- EmptyQuery.cs
- HtmlInputButton.cs
- Viewport3DVisual.cs