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
- XmlProcessingInstruction.cs
- InsufficientMemoryException.cs
- AssemblyResourceLoader.cs
- ProgramPublisher.cs
- DocumentApplication.cs
- CursorInteropHelper.cs
- BindStream.cs
- DataGridViewSelectedRowCollection.cs
- _NtlmClient.cs
- PocoPropertyAccessorStrategy.cs
- Size.cs
- UInt16.cs
- exports.cs
- SmtpCommands.cs
- XPathException.cs
- SequentialWorkflowHeaderFooter.cs
- FeatureSupport.cs
- DataGridViewSelectedRowCollection.cs
- NativeObjectSecurity.cs
- MetaChildrenColumn.cs
- MethodBuilder.cs
- LinkClickEvent.cs
- ScriptResourceHandler.cs
- PublisherMembershipCondition.cs
- IpcManager.cs
- IpcManager.cs
- AbsoluteQuery.cs
- XmlDocumentSchema.cs
- DataTemplateKey.cs
- XmlSchemaSearchPattern.cs
- _emptywebproxy.cs
- XPathBuilder.cs
- TextEditor.cs
- ControllableStoryboardAction.cs
- ActivityBindForm.Designer.cs
- InstanceOwner.cs
- MulticastNotSupportedException.cs
- ArithmeticLiteral.cs
- CaseInsensitiveComparer.cs
- SecurityException.cs
- ToolStripRenderer.cs
- BuildManager.cs
- DecryptRequest.cs
- GridViewSelectEventArgs.cs
- PolicyValidationException.cs
- WCFBuildProvider.cs
- ServiceOperationInvoker.cs
- MemberAccessException.cs
- CurrentChangingEventManager.cs
- ManagementNamedValueCollection.cs
- ContainerAction.cs
- XPathDocumentIterator.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- TransformPatternIdentifiers.cs
- GridViewCellAutomationPeer.cs
- ProjectedSlot.cs
- InkCanvasSelection.cs
- SHA256Managed.cs
- ToolStripStatusLabel.cs
- RemotingConfiguration.cs
- FixedSOMSemanticBox.cs
- GPPOINTF.cs
- FontDialog.cs
- MdiWindowListItemConverter.cs
- PtsHost.cs
- WorkflowIdleBehavior.cs
- PersonalizationProvider.cs
- WarningException.cs
- ObjectHelper.cs
- SoapMessage.cs
- HeaderUtility.cs
- TextBoxAutomationPeer.cs
- Ref.cs
- TextFormatter.cs
- OperationResponse.cs
- Transaction.cs
- ElapsedEventArgs.cs
- HybridDictionary.cs
- ResourceReader.cs
- XmlSchemaComplexContentExtension.cs
- WebConfigurationHost.cs
- SpellerError.cs
- DPCustomTypeDescriptor.cs
- ShellProvider.cs
- DataGridViewCellMouseEventArgs.cs
- DeferrableContentConverter.cs
- ProtectedProviderSettings.cs
- QilLoop.cs
- PaintEvent.cs
- AnimationException.cs
- DataGridViewBindingCompleteEventArgs.cs
- AesManaged.cs
- AuthenticationException.cs
- RadioButtonList.cs
- DbModificationClause.cs
- XamlWrappingReader.cs
- QilLiteral.cs
- EncoderParameters.cs
- QilInvokeLateBound.cs
- _ConnectionGroup.cs