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
- WpfPayload.cs
- CacheAxisQuery.cs
- DataPager.cs
- DesignTableCollection.cs
- __Filters.cs
- MexBindingBindingCollectionElement.cs
- CompoundFileDeflateTransform.cs
- BamlBinaryReader.cs
- Int32CollectionConverter.cs
- DataRelationCollection.cs
- HttpsChannelListener.cs
- GeneralTransform3D.cs
- Membership.cs
- SelectorItemAutomationPeer.cs
- AspCompat.cs
- BufferAllocator.cs
- EventLogPermissionEntryCollection.cs
- dataprotectionpermission.cs
- _DigestClient.cs
- WebColorConverter.cs
- PropertyValueEditor.cs
- InitializerFacet.cs
- CaseStatementSlot.cs
- SerializationEventsCache.cs
- SchemaTypeEmitter.cs
- AtomParser.cs
- DetailsViewUpdateEventArgs.cs
- TextElementEditingBehaviorAttribute.cs
- DrawingContextWalker.cs
- CharEnumerator.cs
- DbTransaction.cs
- SmiRequestExecutor.cs
- PropertyBuilder.cs
- ResourceWriter.cs
- PersistencePipeline.cs
- TreeViewAutomationPeer.cs
- BinaryCommonClasses.cs
- SQLBytesStorage.cs
- Style.cs
- ConsoleCancelEventArgs.cs
- TableLayoutStyleCollection.cs
- ClassHandlersStore.cs
- AppDomainManager.cs
- StateMachineWorkflowInstance.cs
- HeaderUtility.cs
- SkewTransform.cs
- HttpRuntimeSection.cs
- AxisAngleRotation3D.cs
- ColumnPropertiesGroup.cs
- FontFamily.cs
- HttpHandlerAction.cs
- ClientSideProviderDescription.cs
- NetTcpSecurity.cs
- DateTimeValueSerializerContext.cs
- AdornedElementPlaceholder.cs
- SubqueryTrackingVisitor.cs
- XmlExceptionHelper.cs
- PageAsyncTask.cs
- PenContext.cs
- TCEAdapterGenerator.cs
- BinaryMethodMessage.cs
- EmbeddedObject.cs
- DiscreteKeyFrames.cs
- DataGridViewCellLinkedList.cs
- ExpressionList.cs
- QilInvoke.cs
- AdornerDecorator.cs
- FileSystemInfo.cs
- SettingsProperty.cs
- ColumnCollection.cs
- VerticalAlignConverter.cs
- XmlIterators.cs
- RenderContext.cs
- ButtonColumn.cs
- EntryPointNotFoundException.cs
- Operator.cs
- RuleInfoComparer.cs
- DesignerTransaction.cs
- DrawListViewColumnHeaderEventArgs.cs
- EventHandlersStore.cs
- MaskedTextBoxDesignerActionList.cs
- ObjectRef.cs
- ListViewHitTestInfo.cs
- FixedLineResult.cs
- WindowsListViewItem.cs
- BulletChrome.cs
- exports.cs
- _UriTypeConverter.cs
- SymbolType.cs
- ColumnWidthChangedEvent.cs
- TraceHandlerErrorFormatter.cs
- ViewPort3D.cs
- WorkflowDefinitionDispenser.cs
- TraceFilter.cs
- LayoutInformation.cs
- Variant.cs
- SingleTagSectionHandler.cs
- DBSchemaRow.cs
- StringSource.cs
- StateChangeEvent.cs