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
- DataStreams.cs
- COM2TypeInfoProcessor.cs
- MimeObjectFactory.cs
- EnumMemberAttribute.cs
- SafeNativeMethods.cs
- TextInfo.cs
- CommandSet.cs
- SqlDataSourceFilteringEventArgs.cs
- IItemContainerGenerator.cs
- InkPresenterAutomationPeer.cs
- AttributeEmitter.cs
- CompatibleIComparer.cs
- DesignerAutoFormatCollection.cs
- TextDpi.cs
- XamlSerializerUtil.cs
- DataComponentMethodGenerator.cs
- ETagAttribute.cs
- XmlEntity.cs
- ValidationErrorCollection.cs
- ProxyGenerationError.cs
- ServiceBusyException.cs
- BitmapMetadata.cs
- OdbcCommandBuilder.cs
- OdbcConnectionPoolProviderInfo.cs
- MiniParameterInfo.cs
- _TimerThread.cs
- BitmapFrame.cs
- EntityProviderServices.cs
- ColorAnimationBase.cs
- WorkflowEventArgs.cs
- ClassData.cs
- Inflater.cs
- DuplexSecurityProtocolFactory.cs
- XmlKeywords.cs
- DoubleStorage.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ConnectionManagementElementCollection.cs
- InputDevice.cs
- Line.cs
- SessionStateSection.cs
- BitmapEffectGeneralTransform.cs
- ImageUrlEditor.cs
- DomNameTable.cs
- PartBasedPackageProperties.cs
- SettingsBase.cs
- Vector3DKeyFrameCollection.cs
- SecurityPermission.cs
- MenuCommand.cs
- ScriptingJsonSerializationSection.cs
- TracePayload.cs
- ContextActivityUtils.cs
- SettingsPropertyIsReadOnlyException.cs
- StateDesigner.Layouts.cs
- TextPointer.cs
- CustomErrorCollection.cs
- SmiConnection.cs
- CalendarKeyboardHelper.cs
- HistoryEventArgs.cs
- ToolStripProgressBar.cs
- AllMembershipCondition.cs
- AssemblyBuilder.cs
- ImpersonateTokenRef.cs
- WebReferencesBuildProvider.cs
- TemplatePropertyEntry.cs
- RectangleConverter.cs
- StreamReader.cs
- LambdaCompiler.Address.cs
- SafeUserTokenHandle.cs
- SchemaNamespaceManager.cs
- ResponseStream.cs
- TransactionOptions.cs
- MultiTouchSystemGestureLogic.cs
- RenderCapability.cs
- CodeAccessPermission.cs
- ObjectToIdCache.cs
- Oid.cs
- AlphabetConverter.cs
- __TransparentProxy.cs
- Internal.cs
- RectConverter.cs
- PagesSection.cs
- SQLRoleProvider.cs
- RolePrincipal.cs
- XmlSchemaAnnotated.cs
- CookieParameter.cs
- SocketElement.cs
- LineVisual.cs
- ParserStreamGeometryContext.cs
- ContentElement.cs
- CommandExpr.cs
- UnmanagedMemoryStream.cs
- InstanceCompleteException.cs
- XamlTreeBuilder.cs
- ArrangedElementCollection.cs
- ControlOperationBehavior.cs
- HandlerFactoryWrapper.cs
- COM2TypeInfoProcessor.cs
- ValidationSummary.cs
- CodeDefaultValueExpression.cs
- SharingService.cs