Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ComponentModel / COM2Interop / COM2ExtendedBrowsingHandler.cs / 1305376 / COM2ExtendedBrowsingHandler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.ComponentModel.Com2Interop { using System.ComponentModel; using System.Diagnostics; using System; ////// /// This is the base class for handlers for COM2 extended browsing interface /// such as IPerPropertyBrowsing, etc. /// /// These handlers should be stateless. That is, they should keep no refs to object /// and should only work on a give object and dispid. That way all objects that /// support a give interface can share a handler. /// /// See COM2Properties for the array of handler classes to interface classes /// where handlers should be registered. /// internal abstract class Com2ExtendedBrowsingHandler{ ////// /// The interface that this handler managers /// such as IPerPropertyBrowsing, IProvidePropertyBuilder, etc. /// public abstract Type Interface{ get; } ////// /// Called to setup the property handlers on a given property /// In this method, the handler will add listeners to the events that /// the COM2PropertyDescriptor surfaces that it cares about. /// public virtual void SetupPropertyHandlers(Com2PropertyDescriptor propDesc){ SetupPropertyHandlers(new Com2PropertyDescriptor[]{propDesc}); } ////// /// Called to setup the property handlers on a given properties /// In this method, the handler will add listeners to the events that /// the Com2PropertyDescriptor surfaces that it cares about. /// public abstract void SetupPropertyHandlers(Com2PropertyDescriptor[] propDesc); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.ComponentModel.Com2Interop { using System.ComponentModel; using System.Diagnostics; using System; ////// /// This is the base class for handlers for COM2 extended browsing interface /// such as IPerPropertyBrowsing, etc. /// /// These handlers should be stateless. That is, they should keep no refs to object /// and should only work on a give object and dispid. That way all objects that /// support a give interface can share a handler. /// /// See COM2Properties for the array of handler classes to interface classes /// where handlers should be registered. /// internal abstract class Com2ExtendedBrowsingHandler{ ////// /// The interface that this handler managers /// such as IPerPropertyBrowsing, IProvidePropertyBuilder, etc. /// public abstract Type Interface{ get; } ////// /// Called to setup the property handlers on a given property /// In this method, the handler will add listeners to the events that /// the COM2PropertyDescriptor surfaces that it cares about. /// public virtual void SetupPropertyHandlers(Com2PropertyDescriptor propDesc){ SetupPropertyHandlers(new Com2PropertyDescriptor[]{propDesc}); } ////// /// Called to setup the property handlers on a given properties /// In this method, the handler will add listeners to the events that /// the Com2PropertyDescriptor surfaces that it cares about. /// public abstract void SetupPropertyHandlers(Com2PropertyDescriptor[] propDesc); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Completion.cs
- ProfessionalColorTable.cs
- HostedNamedPipeTransportManager.cs
- MethodBody.cs
- SystemBrushes.cs
- ExpressionParser.cs
- GridView.cs
- BuildResultCache.cs
- WindowsHyperlink.cs
- WindowsFormsSectionHandler.cs
- AnnotationResource.cs
- HtmlMeta.cs
- MenuItemCollection.cs
- ProfileModule.cs
- BidirectionalDictionary.cs
- ResourceDictionaryCollection.cs
- FileChangesMonitor.cs
- ObjectPropertyMapping.cs
- datacache.cs
- ItemContainerGenerator.cs
- SQLByte.cs
- InstanceView.cs
- DocumentGrid.cs
- KeyValueConfigurationCollection.cs
- CollectionsUtil.cs
- ResourcesChangeInfo.cs
- FocusChangedEventArgs.cs
- TreeViewImageIndexConverter.cs
- HtmlFormWrapper.cs
- DSACryptoServiceProvider.cs
- DiagnosticTraceSource.cs
- HttpHandler.cs
- CornerRadius.cs
- ListControlConvertEventArgs.cs
- XmlStreamStore.cs
- TextTreeObjectNode.cs
- BaseComponentEditor.cs
- LayoutSettings.cs
- GroupStyle.cs
- BatchStream.cs
- DispatcherExceptionFilterEventArgs.cs
- WebPartCancelEventArgs.cs
- XmlNotation.cs
- MimeWriter.cs
- HelpProvider.cs
- AssemblyUtil.cs
- FixedPageAutomationPeer.cs
- Membership.cs
- BinaryHeap.cs
- Rect.cs
- DataSetSchema.cs
- MailAddress.cs
- NetTcpBinding.cs
- OdbcInfoMessageEvent.cs
- XmlNotation.cs
- ProfileSettings.cs
- FrameDimension.cs
- DatagridviewDisplayedBandsData.cs
- Avt.cs
- PropertyDescriptorCollection.cs
- XmlResolver.cs
- WindowsGraphics.cs
- XamlClipboardData.cs
- LayoutManager.cs
- RtType.cs
- EventSinkHelperWriter.cs
- RightsManagementLicense.cs
- ElementsClipboardData.cs
- IncrementalCompileAnalyzer.cs
- GroupQuery.cs
- TextRangeEdit.cs
- CursorConverter.cs
- DbgUtil.cs
- Native.cs
- DbExpressionVisitor_TResultType.cs
- COM2ColorConverter.cs
- UnsafeNativeMethods.cs
- QueryCacheManager.cs
- TableCellCollection.cs
- QilPatternVisitor.cs
- TablePattern.cs
- Point3DCollectionValueSerializer.cs
- Decorator.cs
- ConstraintStruct.cs
- dataprotectionpermissionattribute.cs
- ViewStateModeByIdAttribute.cs
- AndCondition.cs
- BitmapEffectvisualstate.cs
- GridViewSortEventArgs.cs
- GridView.cs
- RequestResizeEvent.cs
- DbXmlEnabledProviderManifest.cs
- _ListenerAsyncResult.cs
- Stroke2.cs
- objectresult_tresulttype.cs
- ExpressionBuilder.cs
- ByteAnimationUsingKeyFrames.cs
- SendMailErrorEventArgs.cs
- DelegateBodyWriter.cs
- MultiSelectRootGridEntry.cs