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
- IdnMapping.cs
- Symbol.cs
- ShapeTypeface.cs
- AttributeTable.cs
- CompilationUtil.cs
- Compiler.cs
- complextypematerializer.cs
- SiteMapDataSource.cs
- TextWriterTraceListener.cs
- RemoteArgument.cs
- UshortList2.cs
- BulletedList.cs
- __FastResourceComparer.cs
- Pens.cs
- MissingManifestResourceException.cs
- PrimitiveType.cs
- BooleanFacetDescriptionElement.cs
- XPathSelectionIterator.cs
- ComponentEditorPage.cs
- SpecialFolderEnumConverter.cs
- XmlSubtreeReader.cs
- RuntimeConfigurationRecord.cs
- ZipIOLocalFileBlock.cs
- DataGridViewCellStyleConverter.cs
- ChangeDirector.cs
- ConnectionInterfaceCollection.cs
- TextBoxLine.cs
- ProfileModule.cs
- ErrorStyle.cs
- AppDomainUnloadedException.cs
- LocatorGroup.cs
- GeneratedCodeAttribute.cs
- FormViewPagerRow.cs
- TableRow.cs
- GuidelineSet.cs
- FocusWithinProperty.cs
- FormView.cs
- VisualStyleInformation.cs
- MSAAWinEventWrap.cs
- NativeRecognizer.cs
- _Events.cs
- infer.cs
- DropDownHolder.cs
- ColumnHeaderCollectionEditor.cs
- Storyboard.cs
- LambdaExpression.cs
- PeerNameRecordCollection.cs
- WebEventTraceProvider.cs
- Directory.cs
- ClosureBinding.cs
- ErrorLog.cs
- CompositeFontInfo.cs
- TextDecorationLocationValidation.cs
- WinFormsComponentEditor.cs
- SourceFilter.cs
- Icon.cs
- SQLInt32Storage.cs
- WeakReadOnlyCollection.cs
- ValidatedControlConverter.cs
- HttpHandlersSection.cs
- BufferedReadStream.cs
- Variant.cs
- DataGridViewLayoutData.cs
- TemplateLookupAction.cs
- PolicyManager.cs
- EmptyCollection.cs
- WebPartDisplayMode.cs
- base64Transforms.cs
- AlternateView.cs
- DoubleLink.cs
- LayoutEditorPart.cs
- DetailsViewDeletedEventArgs.cs
- TrustLevelCollection.cs
- TemplateAction.cs
- WebConfigurationHostFileChange.cs
- CodeStatement.cs
- DeviceFilterEditorDialog.cs
- XmlILTrace.cs
- DecoderFallback.cs
- OSEnvironmentHelper.cs
- PropertyMapper.cs
- Coordinator.cs
- SelectionRangeConverter.cs
- InvalidOperationException.cs
- EntityContainerAssociationSetEnd.cs
- SerialReceived.cs
- DictionaryCustomTypeDescriptor.cs
- CompiledQueryCacheKey.cs
- DataGridViewComboBoxColumnDesigner.cs
- Int32Storage.cs
- TypeSystemProvider.cs
- ItemPager.cs
- Double.cs
- SplineQuaternionKeyFrame.cs
- UnmanagedMemoryStream.cs
- DisplayMemberTemplateSelector.cs
- AbsoluteQuery.cs
- DataObjectPastingEventArgs.cs
- FormClosingEvent.cs
- XmlBinaryReader.cs