Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / ConsumerConnectionPoint.cs / 1305376 / ConsumerConnectionPoint.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Reflection; using System.Web; using System.Web.Util; public class ConsumerConnectionPoint : ConnectionPoint { // Used by WebPartManager to verify the custom ConnectionPoint type has // the correct constructor signature. internal static readonly Type[] ConstructorTypes; static ConsumerConnectionPoint() { ConstructorInfo constructor = typeof(ConsumerConnectionPoint).GetConstructors()[0]; ConstructorTypes = WebPartUtil.GetTypesForConstructor(constructor); } public ConsumerConnectionPoint(MethodInfo callbackMethod, Type interfaceType, Type controlType, string displayName, string id, bool allowsMultipleConnections) : base( callbackMethod, interfaceType, controlType, displayName, id, allowsMultipleConnections) { } public virtual void SetObject(Control control, object data) { if (control == null) { throw new ArgumentNullException("control"); } CallbackMethod.Invoke(control, new object[] {data}); } ////// Base implementation returns true, can be overridden by subclasses to return /// true or false conditionally based on the available secondary interfaces and the state /// of the consumer WebPart passed in. /// public virtual bool SupportsConnection(Control control, ConnectionInterfaceCollection secondaryInterfaces) { return true; } } } // 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
- HtmlContainerControl.cs
- StorageEntityTypeMapping.cs
- DefaultAssemblyResolver.cs
- WebServicesInteroperability.cs
- BindingCollectionElement.cs
- TypeSystemProvider.cs
- safelink.cs
- SqlComparer.cs
- NavigationPropertyEmitter.cs
- FileRegion.cs
- XmlNamedNodeMap.cs
- CfgParser.cs
- ServiceMetadataBehavior.cs
- LoginStatusDesigner.cs
- ModelMemberCollection.cs
- SendMailErrorEventArgs.cs
- SqlXml.cs
- ToolStripGrip.cs
- MenuAdapter.cs
- MessageSmuggler.cs
- PolicyStatement.cs
- SmtpAuthenticationManager.cs
- MatrixUtil.cs
- ToolConsole.cs
- HitTestParameters.cs
- MessageQueueKey.cs
- WebSysDescriptionAttribute.cs
- ListDictionaryInternal.cs
- EditorZoneBase.cs
- BitmapEffectInput.cs
- XmlAttribute.cs
- TemplatingOptionsDialog.cs
- TrustManager.cs
- ExpressionLexer.cs
- DeferredSelectedIndexReference.cs
- TypeLoadException.cs
- DataDesignUtil.cs
- FormsAuthenticationConfiguration.cs
- RuleEngine.cs
- WindowsNonControl.cs
- XmlAttributeAttribute.cs
- EdmError.cs
- XmlArrayItemAttributes.cs
- StronglyTypedResourceBuilder.cs
- UpDownBase.cs
- HtmlForm.cs
- KnownIds.cs
- TextParagraph.cs
- NullReferenceException.cs
- XmlNodeChangedEventManager.cs
- FileInfo.cs
- SchemaDeclBase.cs
- SelectManyQueryOperator.cs
- CompatibleComparer.cs
- PropertyGrid.cs
- ManagedWndProcTracker.cs
- TypeElement.cs
- TypeProvider.cs
- ResourceExpression.cs
- DataGridViewRowPostPaintEventArgs.cs
- Compiler.cs
- DoubleStorage.cs
- RemotingConfigParser.cs
- InheritablePropertyChangeInfo.cs
- XmlSchemaDatatype.cs
- ISAPIApplicationHost.cs
- LinearQuaternionKeyFrame.cs
- ListViewItem.cs
- EventLogPermissionAttribute.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- _SecureChannel.cs
- MenuAdapter.cs
- Console.cs
- TemplateAction.cs
- Pen.cs
- ButtonAutomationPeer.cs
- FormsAuthenticationUserCollection.cs
- DataViewSettingCollection.cs
- InternalPermissions.cs
- MetadataArtifactLoaderResource.cs
- AdornerPresentationContext.cs
- PolyBezierSegmentFigureLogic.cs
- WebPartConnectionsCancelEventArgs.cs
- InnerItemCollectionView.cs
- BufferedResponseStream.cs
- ObjectStateFormatter.cs
- ResolveNextArgumentWorkItem.cs
- WebPartDescriptionCollection.cs
- _SafeNetHandles.cs
- WmlImageAdapter.cs
- UnmanagedMemoryAccessor.cs
- InnerItemCollectionView.cs
- XmlNode.cs
- DynamicMetaObjectBinder.cs
- BinaryObjectWriter.cs
- XmlIlTypeHelper.cs
- BuilderPropertyEntry.cs
- DataMisalignedException.cs
- CompiledXpathExpr.cs
- InternalConfigRoot.cs