Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / ComponentModel / COM2Interop / COM2ExtendedBrowsingHandler.cs / 1 / 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
- GridItemPatternIdentifiers.cs
- HtmlSelectionListAdapter.cs
- IConvertible.cs
- DataSourceCacheDurationConverter.cs
- DetailsViewPageEventArgs.cs
- ColorConvertedBitmap.cs
- LeafCellTreeNode.cs
- DataGridTable.cs
- EventLogEntryCollection.cs
- counter.cs
- TextTreeFixupNode.cs
- util.cs
- EntityWithChangeTrackerStrategy.cs
- CodeChecksumPragma.cs
- NullableBoolConverter.cs
- _UncName.cs
- SharedDp.cs
- _NegotiateClient.cs
- DictionaryMarkupSerializer.cs
- XsdValidatingReader.cs
- XMLDiffLoader.cs
- SymbolMethod.cs
- BufferModesCollection.cs
- AttachmentCollection.cs
- DataBoundControlActionList.cs
- EventArgs.cs
- ValueType.cs
- ToolTipService.cs
- RewritingSimplifier.cs
- FreezableCollection.cs
- ConfigXmlCDataSection.cs
- PageAsyncTaskManager.cs
- SignatureToken.cs
- IPipelineRuntime.cs
- CompilationLock.cs
- DesignerDataTable.cs
- EventBuilder.cs
- SafeNativeMethodsOther.cs
- CompositeScriptReference.cs
- SmiTypedGetterSetter.cs
- CodeFieldReferenceExpression.cs
- ExpressionLexer.cs
- TrustManagerPromptUI.cs
- CultureInfo.cs
- DbConvert.cs
- TreeBuilder.cs
- XmlSerializerFactory.cs
- UnicodeEncoding.cs
- DivideByZeroException.cs
- SelectionEditor.cs
- PixelFormatConverter.cs
- CategoryGridEntry.cs
- ToolStripTextBox.cs
- Recipient.cs
- WindowsNonControl.cs
- DataColumnChangeEvent.cs
- ConfigurationStrings.cs
- datacache.cs
- Library.cs
- Char.cs
- RootCodeDomSerializer.cs
- FieldNameLookup.cs
- GridViewHeaderRowPresenter.cs
- SizeF.cs
- EventWaitHandle.cs
- _NetRes.cs
- SHA1CryptoServiceProvider.cs
- ListDictionary.cs
- HtmlTableRowCollection.cs
- NumericPagerField.cs
- DataListItemCollection.cs
- SystemColorTracker.cs
- CodeTypeReference.cs
- ObjectParameterCollection.cs
- MappingMetadataHelper.cs
- StyleHelper.cs
- SqlRowUpdatingEvent.cs
- ResourceDisplayNameAttribute.cs
- safelinkcollection.cs
- SqlRetyper.cs
- DataStorage.cs
- CaseStatementSlot.cs
- GuidTagList.cs
- WindowsAuthenticationEventArgs.cs
- EditorZoneBase.cs
- PreviewPrintController.cs
- WmlLabelAdapter.cs
- SvcMapFileLoader.cs
- SafeLibraryHandle.cs
- ThousandthOfEmRealPoints.cs
- MobileListItem.cs
- DiscoveryDocumentSearchPattern.cs
- CustomAttributeSerializer.cs
- ServiceContractDetailViewControl.cs
- BlurBitmapEffect.cs
- SessionIDManager.cs
- PageThemeCodeDomTreeGenerator.cs
- ParagraphVisual.cs
- CompilerScope.cs
- BaseCAMarshaler.cs