Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / ConsumerConnectionPoint.cs / 1 / ConsumerConnectionPoint.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Reflection; using System.Security.Permissions; using System.Web; using System.Web.Util; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BamlWriter.cs
- ScrollViewer.cs
- TextEditorThreadLocalStore.cs
- GraphicsContext.cs
- BooleanStorage.cs
- MdImport.cs
- CryptoProvider.cs
- HttpEncoderUtility.cs
- WebPartDisplayMode.cs
- XmlUtilWriter.cs
- ZipIOExtraFieldPaddingElement.cs
- TextEffectResolver.cs
- SiblingIterators.cs
- XmlRootAttribute.cs
- TemplateControlBuildProvider.cs
- PersonalizableTypeEntry.cs
- ProfileGroupSettings.cs
- CategoryNameCollection.cs
- HostedTransportConfigurationManager.cs
- SQLStringStorage.cs
- SectionUpdates.cs
- ReachVisualSerializer.cs
- UIElement.cs
- X509Certificate2.cs
- WebBrowsableAttribute.cs
- XmlAutoDetectWriter.cs
- WorkflowItemsPresenter.cs
- ExcludePathInfo.cs
- ThreadExceptionDialog.cs
- QueryCacheKey.cs
- HttpCapabilitiesBase.cs
- ColumnProvider.cs
- CachedTypeface.cs
- Boolean.cs
- FramingFormat.cs
- HashHelper.cs
- PropertyConverter.cs
- EntityClassGenerator.cs
- AttachmentService.cs
- CompensationHandlingFilter.cs
- DataGridViewRowsRemovedEventArgs.cs
- LoginCancelEventArgs.cs
- CachedFontFamily.cs
- PropertyInformation.cs
- XmlSchemaAll.cs
- NameTable.cs
- UnionExpr.cs
- LogRestartAreaEnumerator.cs
- ContainerAction.cs
- StreamInfo.cs
- LinearKeyFrames.cs
- InitializationEventAttribute.cs
- ScrollProperties.cs
- EventlogProvider.cs
- DataObjectMethodAttribute.cs
- DateTimeOffset.cs
- ValuePattern.cs
- ContentElement.cs
- ProtocolsConfigurationHandler.cs
- ColumnHeaderConverter.cs
- XmlEncoding.cs
- PerfCounters.cs
- ListViewHitTestInfo.cs
- DecimalAnimation.cs
- TraceHandler.cs
- MenuTracker.cs
- IDReferencePropertyAttribute.cs
- StylusDownEventArgs.cs
- SettingsContext.cs
- SystemDiagnosticsSection.cs
- EntityStoreSchemaFilterEntry.cs
- PathSegmentCollection.cs
- MediaTimeline.cs
- OracleCommandSet.cs
- OracleException.cs
- ListCollectionView.cs
- MsiStyleLogWriter.cs
- DataListItemCollection.cs
- SqlCacheDependencyDatabaseCollection.cs
- PeerTransportListenAddressConverter.cs
- ConfigurationSchemaErrors.cs
- SspiSecurityTokenParameters.cs
- XmlTextAttribute.cs
- SmiEventSink.cs
- QueryOptionExpression.cs
- DataGridColumnHeader.cs
- CheckableControlBaseAdapter.cs
- BitmapImage.cs
- XPathChildIterator.cs
- SqlFunctionAttribute.cs
- KeyValueInternalCollection.cs
- SerialErrors.cs
- PkcsUtils.cs
- TextPointer.cs
- Message.cs
- ReferenceEqualityComparer.cs
- Rotation3DAnimation.cs
- AuthenticationException.cs
- NullableFloatAverageAggregationOperator.cs
- HwndSourceParameters.cs