Code:
/ DotNET / DotNET / 8.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
- MasterPageCodeDomTreeGenerator.cs
- StorageEntityContainerMapping.cs
- RegisteredExpandoAttribute.cs
- DesignerVerb.cs
- InvalidProgramException.cs
- ServiceDesigner.cs
- ExpressionConverter.cs
- ServiceMemoryGates.cs
- NameValueSectionHandler.cs
- RepeaterItemEventArgs.cs
- InputScopeAttribute.cs
- DesignTimeDataBinding.cs
- ColumnWidthChangedEvent.cs
- ToolTipService.cs
- Label.cs
- ImagingCache.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- SqlCacheDependencyDatabase.cs
- SchemaSetCompiler.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- VideoDrawing.cs
- ChildrenQuery.cs
- Point4DConverter.cs
- MDIClient.cs
- FileResponseElement.cs
- AllMembershipCondition.cs
- Scene3D.cs
- Interop.cs
- ConnectionStringsExpressionBuilder.cs
- DependencyPropertyConverter.cs
- Point3D.cs
- XmlExpressionDumper.cs
- RegistrationServices.cs
- HtmlInputPassword.cs
- Panel.cs
- SqlExpressionNullability.cs
- XmlUtf8RawTextWriter.cs
- ResourceProviderFactory.cs
- ImplicitInputBrush.cs
- MediaEntryAttribute.cs
- SynchronizationFilter.cs
- ComponentChangingEvent.cs
- TypeConstant.cs
- PropertyValue.cs
- VirtualizingStackPanel.cs
- Filter.cs
- ReadOnlyDataSourceView.cs
- OleDbMetaDataFactory.cs
- GridViewDesigner.cs
- OutputCacheProfile.cs
- CompositeActivityTypeDescriptor.cs
- IgnoreSectionHandler.cs
- UnconditionalPolicy.cs
- GenericIdentity.cs
- ZoneLinkButton.cs
- safex509handles.cs
- SupportingTokenAuthenticatorSpecification.cs
- _ListenerAsyncResult.cs
- CallSiteOps.cs
- GlyphRunDrawing.cs
- errorpatternmatcher.cs
- ActivityStatusChangeEventArgs.cs
- DataGridHeaderBorder.cs
- CompositeActivityTypeDescriptor.cs
- Drawing.cs
- ListCollectionView.cs
- DrawListViewColumnHeaderEventArgs.cs
- LinearKeyFrames.cs
- sqlcontext.cs
- XPathNodeIterator.cs
- AccessViolationException.cs
- SoundPlayer.cs
- XmlDocumentViewSchema.cs
- ClusterSafeNativeMethods.cs
- ConfigXmlWhitespace.cs
- ClassHandlersStore.cs
- BuildProviderCollection.cs
- EntityParameterCollection.cs
- BitmapSource.cs
- FullTextBreakpoint.cs
- SelectionItemPattern.cs
- XsdCachingReader.cs
- HtmlInputFile.cs
- RowToFieldTransformer.cs
- ProfileBuildProvider.cs
- CodeMemberProperty.cs
- OdbcTransaction.cs
- NavigationProgressEventArgs.cs
- Reference.cs
- SiteMapSection.cs
- KeyValueInternalCollection.cs
- FileSystemInfo.cs
- GuidelineCollection.cs
- WebPartConnectionsDisconnectVerb.cs
- UnsafeNativeMethods.cs
- FontUnitConverter.cs
- LogicalTreeHelper.cs
- DeclaredTypeValidator.cs
- CompletionProxy.cs
- Subset.cs