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
- ControlBuilderAttribute.cs
- DeclarativeConditionsCollection.cs
- Item.cs
- PageThemeBuildProvider.cs
- Timeline.cs
- Stylus.cs
- GlobalItem.cs
- CacheRequest.cs
- WebAdminConfigurationHelper.cs
- DrawListViewColumnHeaderEventArgs.cs
- AsyncResult.cs
- WorkflowApplicationCompletedEventArgs.cs
- CrossContextChannel.cs
- TextBox.cs
- RegexRunner.cs
- LogExtentCollection.cs
- DataGridViewTextBoxCell.cs
- DirectoryNotFoundException.cs
- HttpListenerRequestUriBuilder.cs
- WorkflowCompensationBehavior.cs
- TimersDescriptionAttribute.cs
- HtmlInputFile.cs
- DesignSurface.cs
- SmiRecordBuffer.cs
- PointHitTestParameters.cs
- ChunkedMemoryStream.cs
- VBIdentifierName.cs
- XmlSchemaDocumentation.cs
- InvariantComparer.cs
- RoleManagerEventArgs.cs
- GenerateTemporaryTargetAssembly.cs
- WorkflowDesignerMessageFilter.cs
- DefaultValueTypeConverter.cs
- SizeIndependentAnimationStorage.cs
- TypographyProperties.cs
- ListItemCollection.cs
- BindingSource.cs
- EditorPartChrome.cs
- SqlTypesSchemaImporter.cs
- SignedPkcs7.cs
- Mappings.cs
- FlowDocumentFormatter.cs
- BindStream.cs
- TextCharacters.cs
- NumericUpDownAccelerationCollection.cs
- XmlSchemaComplexType.cs
- UInt64Storage.cs
- InitializerFacet.cs
- WorkflowOperationContext.cs
- TrustManagerMoreInformation.cs
- ListView.cs
- IpcChannelHelper.cs
- XPathNodeList.cs
- InkPresenterAutomationPeer.cs
- XmlSchemaAppInfo.cs
- RenameRuleObjectDialog.Designer.cs
- BindableTemplateBuilder.cs
- PtsCache.cs
- AspProxy.cs
- DesignerLabelAdapter.cs
- ParseChildrenAsPropertiesAttribute.cs
- TextTreeRootTextBlock.cs
- RelationshipType.cs
- CalendarDataBindingHandler.cs
- XamlReaderConstants.cs
- SqlNodeAnnotation.cs
- RecognizeCompletedEventArgs.cs
- Timer.cs
- MultiDataTrigger.cs
- WebBrowserSiteBase.cs
- EpmContentSerializer.cs
- XmlValidatingReaderImpl.cs
- ToolConsole.cs
- IPipelineRuntime.cs
- ColorAnimationUsingKeyFrames.cs
- SocketAddress.cs
- Pair.cs
- ViewSimplifier.cs
- IriParsingElement.cs
- HwndSubclass.cs
- WebPartTransformer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ProjectedWrapper.cs
- xml.cs
- ResourceIDHelper.cs
- VarRemapper.cs
- HostProtectionException.cs
- DiagnosticTraceSource.cs
- BufferAllocator.cs
- CopyNodeSetAction.cs
- FrameworkElement.cs
- AssertSection.cs
- UrlAuthorizationModule.cs
- Mappings.cs
- CommandHelper.cs
- MediaSystem.cs
- httpstaticobjectscollection.cs
- Baml2006KnownTypes.cs
- AspCompat.cs
- SimpleRecyclingCache.cs