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
- ClickablePoint.cs
- ToolStripDropDownDesigner.cs
- FragmentQueryProcessor.cs
- MobileControlPersister.cs
- DocumentPageViewAutomationPeer.cs
- Line.cs
- SettingsSavedEventArgs.cs
- URLMembershipCondition.cs
- FileStream.cs
- Transactions.cs
- TypeGeneratedEventArgs.cs
- Typeface.cs
- HtmlControlPersistable.cs
- NonVisualControlAttribute.cs
- CustomCredentialPolicy.cs
- PassportAuthenticationModule.cs
- DataServiceQueryOfT.cs
- Selector.cs
- BinaryKeyIdentifierClause.cs
- InlineCollection.cs
- SecurityRuntime.cs
- InvalidFilterCriteriaException.cs
- ObjectItemNoOpAssemblyLoader.cs
- RuntimeConfigLKG.cs
- DataGridBoolColumn.cs
- DBConcurrencyException.cs
- DES.cs
- Thread.cs
- _SSPIWrapper.cs
- OdbcError.cs
- ExpressionWriter.cs
- _DomainName.cs
- PageCatalogPart.cs
- AttributeEmitter.cs
- OdbcDataReader.cs
- DesignerView.cs
- DispatcherTimer.cs
- ShaderEffect.cs
- DesignerLoader.cs
- path.cs
- SoapReflectionImporter.cs
- SchemaNamespaceManager.cs
- ImageBrush.cs
- WindowsListBox.cs
- AxisAngleRotation3D.cs
- InteropEnvironment.cs
- Rotation3DAnimation.cs
- MissingFieldException.cs
- CatalogPartCollection.cs
- RadioButton.cs
- BindableTemplateBuilder.cs
- OutputScopeManager.cs
- PasswordDeriveBytes.cs
- Binding.cs
- EmptyImpersonationContext.cs
- WindowsRegion.cs
- AssemblyBuilder.cs
- TypeBrowserDialog.cs
- PartialArray.cs
- SqlInternalConnectionSmi.cs
- TableLayoutStyleCollection.cs
- Journal.cs
- MetadataUtil.cs
- SoapTypeAttribute.cs
- DivideByZeroException.cs
- ADRole.cs
- versioninfo.cs
- Int32RectConverter.cs
- xmlsaver.cs
- ContextMenuStripGroup.cs
- FileLevelControlBuilderAttribute.cs
- XmlSchemaExporter.cs
- X509Chain.cs
- ContentTextAutomationPeer.cs
- QilName.cs
- URI.cs
- String.cs
- EncryptedPackage.cs
- wgx_exports.cs
- ClientSettingsProvider.cs
- cookieexception.cs
- Block.cs
- XmlSchemaIdentityConstraint.cs
- PropertyGrid.cs
- FacetValueContainer.cs
- ParseElementCollection.cs
- hebrewshape.cs
- ConnectionStringsSection.cs
- MachineKeyValidationConverter.cs
- HttpRequest.cs
- RecordsAffectedEventArgs.cs
- WorkflowTransactionService.cs
- RemoteWebConfigurationHostServer.cs
- TextAdaptor.cs
- WebPartManager.cs
- HttpClientProtocol.cs
- RootBuilder.cs
- CapabilitiesSection.cs
- LowerCaseStringConverter.cs
- StringResourceManager.cs