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
- InvalidCommandTreeException.cs
- HotSpot.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- ListViewSortEventArgs.cs
- ScrollData.cs
- EventItfInfo.cs
- RuntimeResourceSet.cs
- StrongNamePublicKeyBlob.cs
- ToolStripHighContrastRenderer.cs
- FloaterBaseParaClient.cs
- SqlProfileProvider.cs
- ExtendedPropertiesHandler.cs
- HotSpotCollection.cs
- Tag.cs
- _AutoWebProxyScriptHelper.cs
- PerformanceCounterCategory.cs
- Currency.cs
- TransformCryptoHandle.cs
- PeerApplicationLaunchInfo.cs
- CompoundFileDeflateTransform.cs
- RegexRunner.cs
- GeometryHitTestParameters.cs
- DataSourceSelectArguments.cs
- DataSetMappper.cs
- ApplicationGesture.cs
- XmlChildEnumerator.cs
- ConfigurationElement.cs
- ManifestSignedXml.cs
- PageThemeBuildProvider.cs
- _SslStream.cs
- SynchronizationContext.cs
- InkCanvasSelection.cs
- ZipPackagePart.cs
- FileReader.cs
- GorillaCodec.cs
- RegionInfo.cs
- TaiwanCalendar.cs
- SchemaCollectionCompiler.cs
- TypeLibConverter.cs
- XmlMessageFormatter.cs
- BoolExpression.cs
- SwitchAttribute.cs
- OleDbConnectionInternal.cs
- EnumType.cs
- XPathItem.cs
- IPHostEntry.cs
- ThreadPool.cs
- GPPOINTF.cs
- ClipboardProcessor.cs
- Propagator.ExtentPlaceholderCreator.cs
- CustomTypeDescriptor.cs
- Canvas.cs
- ListBindingHelper.cs
- Int16Animation.cs
- ItemsChangedEventArgs.cs
- ContainerParaClient.cs
- RecordConverter.cs
- GenericsNotImplementedException.cs
- FastEncoderWindow.cs
- StateMachineHelpers.cs
- MinMaxParagraphWidth.cs
- PermissionRequestEvidence.cs
- diagnosticsswitches.cs
- MsmqHostedTransportConfiguration.cs
- PointIndependentAnimationStorage.cs
- DataReceivedEventArgs.cs
- LicenseException.cs
- InvokeWebService.cs
- SQLByteStorage.cs
- PrivilegedConfigurationManager.cs
- LoginName.cs
- PagePropertiesChangingEventArgs.cs
- QilReference.cs
- SponsorHelper.cs
- ValueSerializerAttribute.cs
- OneWayChannelListener.cs
- MethodExpression.cs
- GenericUriParser.cs
- XmlSchemaInfo.cs
- SqlMethodCallConverter.cs
- DataGridCellEditEndingEventArgs.cs
- EventMappingSettingsCollection.cs
- AttachedAnnotationChangedEventArgs.cs
- PropertyHelper.cs
- ProxyGenerationError.cs
- ProxyDataContractResolver.cs
- Misc.cs
- RequestCacheManager.cs
- BindingGraph.cs
- StorageRoot.cs
- XPathMultyIterator.cs
- OleDbRowUpdatingEvent.cs
- Convert.cs
- Addressing.cs
- DivideByZeroException.cs
- _IPv6Address.cs
- DataSvcMapFileSerializer.cs
- PrintingPermissionAttribute.cs
- NamespaceList.cs
- StreamSecurityUpgradeInitiatorBase.cs