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
- HttpVersion.cs
- CustomWebEventKey.cs
- MD5HashHelper.cs
- HttpListenerRequestUriBuilder.cs
- Process.cs
- GridEntryCollection.cs
- MetafileHeader.cs
- ZipIOExtraField.cs
- LoggedException.cs
- ImageListUtils.cs
- XmlSchemaRedefine.cs
- DecimalConverter.cs
- DesignRelationCollection.cs
- Membership.cs
- EventDescriptorCollection.cs
- GifBitmapEncoder.cs
- CallbackException.cs
- CustomSignedXml.cs
- SharedPersonalizationStateInfo.cs
- Rect3D.cs
- PageSetupDialog.cs
- DataObjectSettingDataEventArgs.cs
- ItemsChangedEventArgs.cs
- DefaultExpression.cs
- ToolStripArrowRenderEventArgs.cs
- XmlIlGenerator.cs
- Enum.cs
- DataGridViewLayoutData.cs
- WaitForChangedResult.cs
- ListMarkerSourceInfo.cs
- InstanceDataCollection.cs
- Typography.cs
- SQLDoubleStorage.cs
- FacetChecker.cs
- SafeRegistryKey.cs
- FreeFormDragDropManager.cs
- DataBoundControl.cs
- RectangleGeometry.cs
- NameValueSectionHandler.cs
- HttpCapabilitiesSectionHandler.cs
- DefaultBindingPropertyAttribute.cs
- HtmlPageAdapter.cs
- CodeMethodReturnStatement.cs
- TagNameToTypeMapper.cs
- DataGridViewColumnHeaderCell.cs
- ScrollBarRenderer.cs
- AdjustableArrowCap.cs
- Overlapped.cs
- _AutoWebProxyScriptEngine.cs
- ServerIdentity.cs
- Funcletizer.cs
- ListViewDeleteEventArgs.cs
- DirtyTextRange.cs
- StylusPointProperties.cs
- FixedNode.cs
- Number.cs
- LineInfo.cs
- TextBox.cs
- ListViewGroup.cs
- IISMapPath.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- SerialErrors.cs
- SecurityException.cs
- StateMachine.cs
- SchemaImporterExtensionsSection.cs
- WindowsButton.cs
- BroadcastEventHelper.cs
- WorkflowMarkupElementEventArgs.cs
- BaseTemplateParser.cs
- ComNativeDescriptor.cs
- SamlAttribute.cs
- MemoryStream.cs
- ValidationHelper.cs
- SemanticResultKey.cs
- _NegoStream.cs
- PropertyEntry.cs
- Evaluator.cs
- XmlHierarchicalDataSourceView.cs
- RuleProcessor.cs
- OdbcErrorCollection.cs
- ParagraphResult.cs
- DatePickerAutomationPeer.cs
- HyperlinkAutomationPeer.cs
- RawKeyboardInputReport.cs
- XmlMessageFormatter.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DataGridHeaderBorder.cs
- WorkflowEnvironment.cs
- Int32CollectionConverter.cs
- EdmPropertyAttribute.cs
- BrowserCapabilitiesCompiler.cs
- WeakReadOnlyCollection.cs
- VirtualizingStackPanel.cs
- ControlParameter.cs
- ExpressionBindingsDialog.cs
- PageTheme.cs
- TextEffect.cs
- XmlIterators.cs
- GlyphShapingProperties.cs
- AdRotator.cs