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
- FrameworkTemplate.cs
- UpdateException.cs
- GetWinFXPath.cs
- StringCollectionMarkupSerializer.cs
- PointF.cs
- HashMembershipCondition.cs
- BooleanConverter.cs
- RepeaterItem.cs
- ServiceChannelProxy.cs
- CancellationTokenSource.cs
- GeometryHitTestParameters.cs
- WorkflowApplicationCompletedException.cs
- ExpressionNode.cs
- SiteMapNode.cs
- GorillaCodec.cs
- ActivityMarkupSerializer.cs
- ClusterSafeNativeMethods.cs
- CodeTryCatchFinallyStatement.cs
- SQLSingleStorage.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ping.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- LocatorBase.cs
- StringAnimationUsingKeyFrames.cs
- TransferRequestHandler.cs
- StrokeNodeEnumerator.cs
- DefaultValueTypeConverter.cs
- IteratorDescriptor.cs
- TextEditorSelection.cs
- ConsoleCancelEventArgs.cs
- ValidatorCompatibilityHelper.cs
- RowSpanVector.cs
- EntityDataSource.cs
- UniqueIdentifierService.cs
- CharConverter.cs
- Property.cs
- PathGradientBrush.cs
- CompositeControl.cs
- AjaxFrameworkAssemblyAttribute.cs
- IgnoreSectionHandler.cs
- DocumentSequenceHighlightLayer.cs
- CacheVirtualItemsEvent.cs
- Parallel.cs
- TextSegment.cs
- AlternateViewCollection.cs
- TableSectionStyle.cs
- UiaCoreProviderApi.cs
- StylusButtonCollection.cs
- ProfileInfo.cs
- IntranetCredentialPolicy.cs
- RuleSet.cs
- DataGridItemEventArgs.cs
- ProfilePropertySettings.cs
- isolationinterop.cs
- EventsTab.cs
- BitVector32.cs
- Propagator.ExtentPlaceholderCreator.cs
- ScrollData.cs
- StringStorage.cs
- DesignerVerbToolStripMenuItem.cs
- WebPartZoneCollection.cs
- PieceNameHelper.cs
- StyleTypedPropertyAttribute.cs
- DesignerActionList.cs
- RegionIterator.cs
- EmptyEnumerator.cs
- DataPager.cs
- Compiler.cs
- DataList.cs
- RunWorkerCompletedEventArgs.cs
- LexicalChunk.cs
- InstanceHandleConflictException.cs
- LambdaCompiler.Generated.cs
- WebPartVerbCollection.cs
- InputLanguage.cs
- BrowserCapabilitiesCompiler.cs
- EntityKey.cs
- Calendar.cs
- SharedStatics.cs
- DataSourceCache.cs
- AppDomain.cs
- DataGridParentRows.cs
- MailAddress.cs
- StatusBarPanel.cs
- PolicyUtility.cs
- DesignerActionItem.cs
- SSmlParser.cs
- JsonFormatGeneratorStatics.cs
- TemplatedAdorner.cs
- ClientScriptManager.cs
- TranslateTransform3D.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- PixelFormat.cs
- COM2TypeInfoProcessor.cs
- SqlBuilder.cs
- CompareInfo.cs
- ComponentCollection.cs
- Positioning.cs
- StorageRoot.cs
- ToolStripMenuItemCodeDomSerializer.cs