Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RequestFactory.cs
- SignedXml.cs
- ExpandCollapseProviderWrapper.cs
- PersonalizationStateInfoCollection.cs
- SystemIPv4InterfaceProperties.cs
- PageParser.cs
- PermissionToken.cs
- SubqueryTrackingVisitor.cs
- Identity.cs
- activationcontext.cs
- SqlColumnizer.cs
- DateTimeStorage.cs
- DropShadowEffect.cs
- X509Extension.cs
- ConfigXmlComment.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- SiteMapProvider.cs
- ProcessModelSection.cs
- Slider.cs
- ClientScriptManager.cs
- SQLRoleProvider.cs
- ColorAnimationBase.cs
- DataGridViewCellStyleConverter.cs
- SerializationException.cs
- Utils.cs
- XmlSchemaExternal.cs
- LocalFileSettingsProvider.cs
- Executor.cs
- ZipIOLocalFileHeader.cs
- SchemaImporterExtension.cs
- SecureEnvironment.cs
- Int32CAMarshaler.cs
- PersonalizationDictionary.cs
- RepeaterCommandEventArgs.cs
- Int16Animation.cs
- DoubleLinkListEnumerator.cs
- DataBoundControlHelper.cs
- SetStateEventArgs.cs
- SqlResolver.cs
- PublisherMembershipCondition.cs
- ContainerUtilities.cs
- TrackingConditionCollection.cs
- ReferenceSchema.cs
- Timer.cs
- CollectionDataContractAttribute.cs
- SoapAttributes.cs
- SettingsProviderCollection.cs
- DbProviderFactoriesConfigurationHandler.cs
- TreeNodeBindingCollection.cs
- EntityClientCacheEntry.cs
- TrackingStringDictionary.cs
- HGlobalSafeHandle.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- XmlLanguageConverter.cs
- QilStrConcatenator.cs
- DataBindingList.cs
- QilSortKey.cs
- RC2.cs
- MobileListItem.cs
- CrossSiteScriptingValidation.cs
- PerformanceCounterScope.cs
- ExitEventArgs.cs
- CompareValidator.cs
- ProviderIncompatibleException.cs
- filewebrequest.cs
- TypeForwardedToAttribute.cs
- AsnEncodedData.cs
- XPathItem.cs
- MdImport.cs
- DataGridViewTextBoxCell.cs
- TrackingStringDictionary.cs
- CodeAttachEventStatement.cs
- DispatcherExceptionFilterEventArgs.cs
- EntityFunctions.cs
- Part.cs
- JoinElimination.cs
- PoisonMessageException.cs
- ToolboxItemCollection.cs
- SharedPerformanceCounter.cs
- SessionStateModule.cs
- RootBrowserWindow.cs
- ChannelTraceRecord.cs
- ProfileGroupSettingsCollection.cs
- MenuCommand.cs
- ListViewGroup.cs
- UiaCoreApi.cs
- UpdateCompiler.cs
- unsafeIndexingFilterStream.cs
- OptimalBreakSession.cs
- MiniCustomAttributeInfo.cs
- ClrPerspective.cs
- ConnectionPointGlyph.cs
- ServerIdentity.cs
- FilteredXmlReader.cs
- FixedSOMFixedBlock.cs
- DllNotFoundException.cs
- DesignerAutoFormatStyle.cs
- TextDpi.cs
- WebHostUnsafeNativeMethods.cs
- TextServicesCompartmentEventSink.cs