Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- hresults.cs
- DataGridViewCheckBoxColumn.cs
- DynamicPropertyHolder.cs
- DataGridItem.cs
- TextTreeRootNode.cs
- _FixedSizeReader.cs
- NameValuePermission.cs
- PluggableProtocol.cs
- SQLBinaryStorage.cs
- ListBase.cs
- JsonClassDataContract.cs
- RemotingServices.cs
- PropertyValueUIItem.cs
- SqlCacheDependencySection.cs
- BamlStream.cs
- CompiledAction.cs
- EventQueueState.cs
- ColorContextHelper.cs
- EventEntry.cs
- ScalarRestriction.cs
- CodeEntryPointMethod.cs
- FocusManager.cs
- XmlSchemaSet.cs
- _BaseOverlappedAsyncResult.cs
- _PooledStream.cs
- Task.cs
- LayoutInformation.cs
- SchemaTableOptionalColumn.cs
- AdvancedBindingPropertyDescriptor.cs
- DrawingContextWalker.cs
- StrokeDescriptor.cs
- DescendantBaseQuery.cs
- WebBrowserNavigatedEventHandler.cs
- HandlerMappingMemo.cs
- ConnectionsZoneDesigner.cs
- DetailsViewRow.cs
- Process.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- WebPartMovingEventArgs.cs
- PersonalizableTypeEntry.cs
- _AcceptOverlappedAsyncResult.cs
- XmlValueConverter.cs
- DrawingImage.cs
- TranslateTransform3D.cs
- ArglessEventHandlerProxy.cs
- SystemKeyConverter.cs
- ProxyWebPartConnectionCollection.cs
- DesignerVerbToolStripMenuItem.cs
- TemplateXamlParser.cs
- Internal.cs
- RepeatButton.cs
- DeadCharTextComposition.cs
- CommunicationObject.cs
- FlagsAttribute.cs
- ZipFileInfo.cs
- TypeTypeConverter.cs
- PointValueSerializer.cs
- ClientCultureInfo.cs
- SessionParameter.cs
- PerformanceCounterCategory.cs
- ContextProperty.cs
- TcpClientChannel.cs
- HttpServerChannel.cs
- SoapReflectionImporter.cs
- WorkflowClientDeliverMessageWrapper.cs
- BuiltInExpr.cs
- MenuItemBindingCollection.cs
- XmlDocument.cs
- WindowsListViewItem.cs
- Transform3DGroup.cs
- ComPlusContractBehavior.cs
- TdsParameterSetter.cs
- AdornerDecorator.cs
- UniqueSet.cs
- RSAOAEPKeyExchangeFormatter.cs
- StorageScalarPropertyMapping.cs
- ScaleTransform3D.cs
- NameValueConfigurationCollection.cs
- BindingMAnagerBase.cs
- DataObject.cs
- PropertyGrid.cs
- StrongNameKeyPair.cs
- LazyTextWriterCreator.cs
- FixedPage.cs
- PackageRelationshipSelector.cs
- PersonalizationStateQuery.cs
- DataGridBoolColumn.cs
- DocumentsTrace.cs
- ISFTagAndGuidCache.cs
- XmlSerializerNamespaces.cs
- GradientStop.cs
- DetailsViewInsertEventArgs.cs
- XmlSchemaCompilationSettings.cs
- JumpItem.cs
- DbConnectionStringBuilder.cs
- PngBitmapEncoder.cs
- FixedFindEngine.cs
- BaseResourcesBuildProvider.cs
- XmlCharCheckingWriter.cs
- DocumentViewerBaseAutomationPeer.cs