Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / ComponentModel / COM2Interop / COM2ExtendedBrowsingHandler.cs / 1 / 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
- MissingSatelliteAssemblyException.cs
- GatewayIPAddressInformationCollection.cs
- SessionSwitchEventArgs.cs
- TextModifierScope.cs
- Memoizer.cs
- ToolboxItemWrapper.cs
- FactoryMaker.cs
- IERequestCache.cs
- CounterNameConverter.cs
- SocketPermission.cs
- HMACSHA512.cs
- AssemblySettingAttributes.cs
- ColorBuilder.cs
- SizeLimitedCache.cs
- XmlNodeReader.cs
- EventHandlerList.cs
- MatrixTransform.cs
- RegisteredArrayDeclaration.cs
- InvalidOperationException.cs
- GPPOINT.cs
- WebPartCloseVerb.cs
- Parser.cs
- ImportCatalogPart.cs
- TypeInfo.cs
- ScrollEventArgs.cs
- SimpleRecyclingCache.cs
- SiteMapNode.cs
- ConfigurationManagerHelper.cs
- OpCellTreeNode.cs
- RegionData.cs
- FixedPageStructure.cs
- DataControlReference.cs
- ButtonBaseAutomationPeer.cs
- ToolboxItemAttribute.cs
- HtmlEmptyTagControlBuilder.cs
- PlanCompiler.cs
- SqlConnectionStringBuilder.cs
- StoreItemCollection.Loader.cs
- CriticalHandle.cs
- BitmapEffectDrawingContent.cs
- IPAddress.cs
- TypeGeneratedEventArgs.cs
- ToggleButton.cs
- WorkflowApplicationTerminatedException.cs
- MetafileHeader.cs
- SqlReferenceCollection.cs
- SqlIdentifier.cs
- ImageMap.cs
- SiteIdentityPermission.cs
- OleDbRowUpdatedEvent.cs
- ComplexBindingPropertiesAttribute.cs
- CorrelationQueryBehavior.cs
- ValueSerializerAttribute.cs
- StoreItemCollection.Loader.cs
- HtmlMeta.cs
- TreeNode.cs
- RadioButton.cs
- IndexedEnumerable.cs
- Compilation.cs
- ViewCellSlot.cs
- ItemTypeToolStripMenuItem.cs
- DesignTimeDataBinding.cs
- ButtonField.cs
- GlobalAllocSafeHandle.cs
- TypeExtensionSerializer.cs
- SqlNode.cs
- ResourceCategoryAttribute.cs
- ValueSerializerAttribute.cs
- MSAAEventDispatcher.cs
- HorizontalAlignConverter.cs
- ParseHttpDate.cs
- OutputCacheProfile.cs
- SafePipeHandle.cs
- ServiceDefaults.cs
- BezierSegment.cs
- Normalization.cs
- TextRange.cs
- EntityClientCacheEntry.cs
- QueryAsyncResult.cs
- HuffCodec.cs
- TextEvent.cs
- GridViewUpdateEventArgs.cs
- TextFindEngine.cs
- DataGridLengthConverter.cs
- SqlDataSource.cs
- CollectionChangedEventManager.cs
- SafeNativeMethods.cs
- recordstatefactory.cs
- SqlMethodAttribute.cs
- FontInfo.cs
- mda.cs
- WebRequestModuleElementCollection.cs
- ByteAnimationBase.cs
- Boolean.cs
- AnnotationStore.cs
- ParserContext.cs
- localization.cs
- SoapObjectReader.cs
- WebPartConnectionCollection.cs
- QuadraticBezierSegment.cs