Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / ProviderConnectionPoint.cs / 1305376 / ProviderConnectionPoint.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Reflection; using System.Web; using System.Web.Util; 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Reflection; using System.Web; using System.Web.Util; 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Size.cs
- FormDocumentDesigner.cs
- X509CertificateStore.cs
- SizeIndependentAnimationStorage.cs
- TreeNode.cs
- MenuItemCollection.cs
- TypeExtensionConverter.cs
- MultiSelector.cs
- DBProviderConfigurationHandler.cs
- BaseDataList.cs
- ThicknessConverter.cs
- WmlValidationSummaryAdapter.cs
- DataBindingList.cs
- Cursor.cs
- ToolbarAUtomationPeer.cs
- future.cs
- DispatcherOperation.cs
- WaitingCursor.cs
- BitmapFrame.cs
- MarkupWriter.cs
- HttpCapabilitiesEvaluator.cs
- FormViewInsertEventArgs.cs
- NodeFunctions.cs
- SpellerError.cs
- Rotation3D.cs
- SecurityAlgorithmSuite.cs
- EntityDataSourceReferenceGroup.cs
- TextBox.cs
- PassportPrincipal.cs
- CompoundFileIOPermission.cs
- SchemaInfo.cs
- ContentPresenter.cs
- ToolBarTray.cs
- SoapAttributes.cs
- TemplateControlBuildProvider.cs
- PrtTicket_Base.cs
- Missing.cs
- WebServiceReceive.cs
- Executor.cs
- StreamingContext.cs
- ProxyWebPartManager.cs
- InvokeSchedule.cs
- DecoderReplacementFallback.cs
- FreezableCollection.cs
- SafeProcessHandle.cs
- SafeProcessHandle.cs
- _StreamFramer.cs
- XmlWellformedWriter.cs
- PreloadedPackages.cs
- EnterpriseServicesHelper.cs
- ObjectNotFoundException.cs
- TimeSpanMinutesConverter.cs
- ClientSettingsStore.cs
- DbConnectionHelper.cs
- CompilerTypeWithParams.cs
- KeyFrames.cs
- XmlSchemaGroup.cs
- DataTransferEventArgs.cs
- FieldToken.cs
- DbConnectionPool.cs
- BooleanSwitch.cs
- UnsafeNativeMethodsCLR.cs
- SQLBinary.cs
- PropertyConverter.cs
- HttpCapabilitiesSectionHandler.cs
- GridLength.cs
- LocatorPartList.cs
- SmiEventSink_Default.cs
- BinaryCommonClasses.cs
- ResourceWriter.cs
- ScrollChrome.cs
- BordersPage.cs
- PartitionResolver.cs
- ControlCodeDomSerializer.cs
- TextChangedEventArgs.cs
- EnumValidator.cs
- GC.cs
- HorizontalAlignConverter.cs
- EventRouteFactory.cs
- Int32CAMarshaler.cs
- ToolStripRendererSwitcher.cs
- QueryInterceptorAttribute.cs
- HttpContext.cs
- DataViewManager.cs
- CompositeDuplexBindingElement.cs
- Typeface.cs
- SqlServer2KCompatibilityAnnotation.cs
- ExpressionVisitor.cs
- Shape.cs
- InkCanvasInnerCanvas.cs
- SymbolMethod.cs
- WinEventWrap.cs
- CacheOutputQuery.cs
- DataListItem.cs
- _CacheStreams.cs
- PrimaryKeyTypeConverter.cs
- ClientFormsAuthenticationMembershipProvider.cs
- DefaultHttpHandler.cs
- InkCanvasSelectionAdorner.cs
- DataRelation.cs