Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / ProviderConnectionPoint.cs / 1 / ProviderConnectionPoint.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 ProviderConnectionPoint : ConnectionPoint { // Used by WebPartManager to verify the custom ConnectionPoint type has // the correct constructor signature. internal static readonly Type[] ConstructorTypes; static ProviderConnectionPoint() { ConstructorInfo constructor = typeof(ProviderConnectionPoint).GetConstructors()[0]; ConstructorTypes = WebPartUtil.GetTypesForConstructor(constructor); } public ProviderConnectionPoint(MethodInfo callbackMethod, Type interfaceType, Type controlType, string displayName, string id, bool allowsMultipleConnections) : base( callbackMethod, interfaceType, controlType, displayName, id, allowsMultipleConnections) { } ////// The secondary interfaces for this connection point. An exception will be thrown /// if primary interfaces are returned in this collection. /// public virtual ConnectionInterfaceCollection GetSecondaryInterfaces(Control control) { return ConnectionInterfaceCollection.Empty; } public virtual object GetObject(Control control) { if (control == null) { throw new ArgumentNullException("control"); } return CallbackMethod.Invoke(control, null); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ByteStreamMessage.cs
- RepeaterItem.cs
- DesignerDataSourceView.cs
- XmlSecureResolver.cs
- SecureStringHasher.cs
- HwndProxyElementProvider.cs
- FocusWithinProperty.cs
- ProfileSettings.cs
- FreezableOperations.cs
- ControlParameter.cs
- SqlGenerator.cs
- oledbconnectionstring.cs
- PageThemeParser.cs
- LiteralLink.cs
- MetadataWorkspace.cs
- Property.cs
- ManualResetEventSlim.cs
- DataRowComparer.cs
- PolicyManager.cs
- VirtualDirectoryMapping.cs
- XmlDocumentViewSchema.cs
- FilterEventArgs.cs
- ExcludeFromCodeCoverageAttribute.cs
- MessageSmuggler.cs
- TrustLevel.cs
- SiteMapNodeItem.cs
- PhonemeConverter.cs
- PropertyDescriptors.cs
- UpdateCommandGenerator.cs
- LeaseManager.cs
- Multiply.cs
- UriWriter.cs
- MemberListBinding.cs
- IdnMapping.cs
- UxThemeWrapper.cs
- TraceContext.cs
- Debug.cs
- PrimitiveOperationFormatter.cs
- SettingsContext.cs
- PermissionSet.cs
- SerialReceived.cs
- TraceRecords.cs
- MetadataCollection.cs
- Types.cs
- ProvidePropertyAttribute.cs
- XmlChoiceIdentifierAttribute.cs
- PictureBox.cs
- DataListItemCollection.cs
- InstanceStoreQueryResult.cs
- PointHitTestParameters.cs
- ScriptRef.cs
- LinqDataSourceStatusEventArgs.cs
- HttpModuleCollection.cs
- ConfigurationValues.cs
- TdsValueSetter.cs
- TextBox.cs
- ViewStateChangedEventArgs.cs
- OperationGenerator.cs
- RankException.cs
- ImageCodecInfo.cs
- SqlClientPermission.cs
- EastAsianLunisolarCalendar.cs
- DbConnectionPoolOptions.cs
- Setter.cs
- ResizeBehavior.cs
- WebBrowserNavigatedEventHandler.cs
- ColorMap.cs
- TextUtf8RawTextWriter.cs
- ChildTable.cs
- ContractMapping.cs
- TimelineGroup.cs
- SafeLibraryHandle.cs
- ExtensionMethods.cs
- HtmlInputPassword.cs
- DataBindingHandlerAttribute.cs
- MessageQueue.cs
- HtmlPageAdapter.cs
- CapabilitiesUse.cs
- HttpResponseHeader.cs
- SecurityUtils.cs
- AutomationEvent.cs
- Symbol.cs
- RtfToken.cs
- WebPart.cs
- Activator.cs
- Sql8ConformanceChecker.cs
- FilterElement.cs
- LassoHelper.cs
- EpmSourcePathSegment.cs
- BindingList.cs
- SQLStringStorage.cs
- WindowsListViewGroupSubsetLink.cs
- VerificationAttribute.cs
- XmlSchemaType.cs
- SqlAliasesReferenced.cs
- ArgIterator.cs
- EffectiveValueEntry.cs
- ValueOfAction.cs
- AlgoModule.cs
- PrintControllerWithStatusDialog.cs