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
- XmlDeclaration.cs
- EntityDataSourceChangingEventArgs.cs
- XmlArrayAttribute.cs
- RankException.cs
- TypeNameConverter.cs
- ScriptControl.cs
- xmlsaver.cs
- HttpCachePolicyElement.cs
- DocumentPaginator.cs
- AQNBuilder.cs
- Stackframe.cs
- PointKeyFrameCollection.cs
- DocumentXmlWriter.cs
- PolicyException.cs
- WebPartPersonalization.cs
- CssStyleCollection.cs
- Variable.cs
- PeerApplicationLaunchInfo.cs
- DNS.cs
- ACL.cs
- Point.cs
- ApplicationDirectoryMembershipCondition.cs
- AsyncResult.cs
- IIS7ConfigurationLoader.cs
- TreeViewCancelEvent.cs
- SchemaType.cs
- DecoderBestFitFallback.cs
- RubberbandSelector.cs
- MediaPlayer.cs
- SiteOfOriginPart.cs
- WindowsEditBox.cs
- FactorySettingsElement.cs
- CopyAction.cs
- ManagedWndProcTracker.cs
- TextContainer.cs
- DbConnectionPoolGroupProviderInfo.cs
- UserControlBuildProvider.cs
- CalendarDay.cs
- AppLevelCompilationSectionCache.cs
- GenericXmlSecurityToken.cs
- AttributeUsageAttribute.cs
- MultipleViewPattern.cs
- SemanticResolver.cs
- MetadataUtil.cs
- MemberRelationshipService.cs
- RectangleHotSpot.cs
- DescendantBaseQuery.cs
- IPHostEntry.cs
- RolePrincipal.cs
- NetSectionGroup.cs
- HtmlControlPersistable.cs
- TracedNativeMethods.cs
- FontWeight.cs
- SizeKeyFrameCollection.cs
- SqlRemoveConstantOrderBy.cs
- LinearGradientBrush.cs
- Range.cs
- CodeExpressionStatement.cs
- ConnectionManagementElement.cs
- ToolStripPanelRow.cs
- Tuple.cs
- FontCacheUtil.cs
- HtmlTernaryTree.cs
- SspiWrapper.cs
- AccessibilityHelperForXpWin2k3.cs
- InertiaTranslationBehavior.cs
- DbConnectionPoolGroup.cs
- EntityDataSourceDesignerHelper.cs
- RectIndependentAnimationStorage.cs
- _FtpDataStream.cs
- XmlWrappingWriter.cs
- MetafileHeaderWmf.cs
- FieldMetadata.cs
- DesignerOptions.cs
- ObjectHelper.cs
- SmtpNtlmAuthenticationModule.cs
- BorderGapMaskConverter.cs
- EdmSchemaAttribute.cs
- compensatingcollection.cs
- UpdateExpressionVisitor.cs
- DateTimeValueSerializer.cs
- RoleGroupCollection.cs
- _StreamFramer.cs
- TabItemWrapperAutomationPeer.cs
- XmlDataProvider.cs
- MulticastNotSupportedException.cs
- VScrollBar.cs
- DesignBindingPropertyDescriptor.cs
- DiscoveryEndpoint.cs
- Parser.cs
- UIntPtr.cs
- StylusOverProperty.cs
- FixedSOMTableCell.cs
- SmiEventSink_DeferedProcessing.cs
- BitmapMetadataBlob.cs
- InternalRelationshipCollection.cs
- FontStyle.cs
- PersonalizationProvider.cs
- CellLabel.cs
- TrackingProfileSerializer.cs