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
- SpecialNameAttribute.cs
- DynamicQueryableWrapper.cs
- XmlIlGenerator.cs
- CompiledIdentityConstraint.cs
- RenderData.cs
- FileDataSourceCache.cs
- GeometryHitTestParameters.cs
- EditorPartChrome.cs
- XhtmlTextWriter.cs
- Stack.cs
- FamilyMapCollection.cs
- DataObject.cs
- SchemaManager.cs
- WinOEToolBoxItem.cs
- DbConnectionHelper.cs
- X509Certificate2.cs
- PackagePart.cs
- PointKeyFrameCollection.cs
- StartUpEventArgs.cs
- IMembershipProvider.cs
- OdbcConnectionString.cs
- BCLDebug.cs
- SpellCheck.cs
- SystemIPv6InterfaceProperties.cs
- FieldNameLookup.cs
- DBBindings.cs
- DecimalFormatter.cs
- cookieexception.cs
- DiscoveryClientProtocol.cs
- ParsedAttributeCollection.cs
- ChooseAction.cs
- SerializationEventsCache.cs
- PerformanceCounterPermission.cs
- MdImport.cs
- AffineTransform3D.cs
- httpapplicationstate.cs
- InputLanguage.cs
- UpdateCompiler.cs
- DefaultMergeHelper.cs
- ApplicationSettingsBase.cs
- StylusPointPropertyInfo.cs
- ViewCellRelation.cs
- InterleavedZipPartStream.cs
- DocumentCollection.cs
- EntityDataSourceDesignerHelper.cs
- WebPartCancelEventArgs.cs
- SqlWebEventProvider.cs
- HttpModulesSection.cs
- IdentityManager.cs
- SinglePageViewer.cs
- XmlSchemaProviderAttribute.cs
- ScriptResourceMapping.cs
- LabelEditEvent.cs
- ComponentManagerBroker.cs
- MatrixValueSerializer.cs
- AccessibilityApplicationManager.cs
- CanExecuteRoutedEventArgs.cs
- GroupQuery.cs
- XmlSchemaComplexType.cs
- CodePrimitiveExpression.cs
- LinkLabelLinkClickedEvent.cs
- WaitHandleCannotBeOpenedException.cs
- QueryExtender.cs
- DataGridViewBand.cs
- TableStyle.cs
- ResXResourceSet.cs
- RecommendedAsConfigurableAttribute.cs
- BlurEffect.cs
- ValidatingPropertiesEventArgs.cs
- CompiledQuery.cs
- RootCodeDomSerializer.cs
- NoneExcludedImageIndexConverter.cs
- TypeDependencyAttribute.cs
- ReadOnlyDictionary.cs
- TreeViewAutomationPeer.cs
- XmlWriterTraceListener.cs
- CachingHintValidation.cs
- OleDbDataAdapter.cs
- ScrollChangedEventArgs.cs
- AutoScrollExpandMessageFilter.cs
- EntityWrapperFactory.cs
- Block.cs
- DataGridTableCollection.cs
- Misc.cs
- MatchingStyle.cs
- CodeGenHelper.cs
- StdValidatorsAndConverters.cs
- InvokeGenerator.cs
- SelectionPattern.cs
- BitmapEffectvisualstate.cs
- UnsafeNativeMethods.cs
- DataSourceCacheDurationConverter.cs
- HebrewNumber.cs
- TableChangeProcessor.cs
- SessionStateSection.cs
- FormViewRow.cs
- DefaultAsyncDataDispatcher.cs
- TraceRecord.cs
- CompilerErrorCollection.cs
- RelationshipNavigation.cs