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
- MaterialGroup.cs
- Empty.cs
- XPathScanner.cs
- MessageLoggingElement.cs
- ControlBindingsCollection.cs
- XhtmlConformanceSection.cs
- MemberInfoSerializationHolder.cs
- SelectionEditor.cs
- SoundPlayer.cs
- MenuItemBindingCollection.cs
- InheritablePropertyChangeInfo.cs
- ContractHandle.cs
- WebServicesSection.cs
- PackWebRequest.cs
- Win32Native.cs
- QueryServiceConfigHandle.cs
- Label.cs
- EntityDataSourceDesigner.cs
- UnsafeNativeMethods.cs
- DelegateHelpers.Generated.cs
- ClassHandlersStore.cs
- ContextDataSource.cs
- ClientSponsor.cs
- StandardCommands.cs
- DataGridViewRowCancelEventArgs.cs
- WebPartEditorApplyVerb.cs
- XmlnsDictionary.cs
- EditCommandColumn.cs
- SiteMapDataSourceView.cs
- SelectionHighlightInfo.cs
- SecurityUtils.cs
- GlyphCache.cs
- XmlBindingWorker.cs
- RelOps.cs
- CommentAction.cs
- NetworkInformationException.cs
- ProcessStartInfo.cs
- ResourceKey.cs
- XmlSchemaAny.cs
- CodeDirectiveCollection.cs
- VectorCollection.cs
- InkCanvasInnerCanvas.cs
- MetadataException.cs
- MsmqInputChannelListenerBase.cs
- CodeEntryPointMethod.cs
- PathTooLongException.cs
- Point4D.cs
- DoubleAnimationUsingPath.cs
- EventDriven.cs
- DocumentOrderQuery.cs
- AssertSection.cs
- VisualStyleTypesAndProperties.cs
- TemplateComponentConnector.cs
- ExtenderControl.cs
- WindowPatternIdentifiers.cs
- OrderedDictionary.cs
- BindingExpression.cs
- CalendarKeyboardHelper.cs
- StateMachineSubscription.cs
- RectConverter.cs
- RadioButtonRenderer.cs
- AuthenticationService.cs
- DiscoveryInnerClientAdhocCD1.cs
- RequestCache.cs
- TableLayoutSettings.cs
- Nullable.cs
- Itemizer.cs
- TextDecorations.cs
- Line.cs
- IgnorePropertiesAttribute.cs
- SoapSchemaExporter.cs
- WorkflowRuntimeServiceElementCollection.cs
- GeneralTransform3DGroup.cs
- LocatorGroup.cs
- CubicEase.cs
- _NativeSSPI.cs
- Number.cs
- FrameworkElement.cs
- TextTreeTextBlock.cs
- Descriptor.cs
- PathFigure.cs
- NetDispatcherFaultException.cs
- IProvider.cs
- CrossAppDomainChannel.cs
- OSFeature.cs
- SoapHeader.cs
- BlobPersonalizationState.cs
- InkSerializer.cs
- BitmapPalettes.cs
- ToolboxComponentsCreatingEventArgs.cs
- ResourceProperty.cs
- MissingSatelliteAssemblyException.cs
- IdleTimeoutMonitor.cs
- SvcMapFile.cs
- SchemaElement.cs
- ConcurrencyMode.cs
- RadioButtonPopupAdapter.cs
- ReadOnlyDictionary.cs
- HttpContextServiceHost.cs
- KnownBoxes.cs