Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OperationCanceledException.cs
- RightNameExpirationInfoPair.cs
- XmlSchemas.cs
- ProfileParameter.cs
- GifBitmapDecoder.cs
- ScheduleChanges.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- SHA1Managed.cs
- VectorAnimationBase.cs
- HMACSHA1.cs
- _BaseOverlappedAsyncResult.cs
- XmlMemberMapping.cs
- StoreItemCollection.cs
- PreviewPageInfo.cs
- StandardCommandToolStripMenuItem.cs
- BackStopAuthenticationModule.cs
- MemoryMappedFile.cs
- SettingsPropertyCollection.cs
- PageSettings.cs
- ReadOnlyDataSourceView.cs
- WindowsRegion.cs
- AspNetPartialTrustHelpers.cs
- BuildProviderAppliesToAttribute.cs
- ApplicationBuildProvider.cs
- Menu.cs
- StdRegProviderWrapper.cs
- TextServicesHost.cs
- RuntimeComponentFilter.cs
- DiscreteKeyFrames.cs
- SqlDataSourceAdvancedOptionsForm.cs
- RoutedEventHandlerInfo.cs
- HttpAsyncResult.cs
- HtmlFormWrapper.cs
- QueryOptionExpression.cs
- Pen.cs
- XPathConvert.cs
- ValueExpressions.cs
- MessageSmuggler.cs
- MediaSystem.cs
- SettingsProviderCollection.cs
- WindowsClientElement.cs
- ReaderContextStackData.cs
- WebEventCodes.cs
- Calendar.cs
- UpdateException.cs
- XmlSchemaParticle.cs
- SafeRightsManagementHandle.cs
- AnnotationComponentManager.cs
- XmlDocumentType.cs
- PublishLicense.cs
- IOException.cs
- CompareInfo.cs
- DetailsViewDeletedEventArgs.cs
- PolicyStatement.cs
- VideoDrawing.cs
- ControlParameter.cs
- _CommandStream.cs
- XmlQueryOutput.cs
- RC2CryptoServiceProvider.cs
- XsdCachingReader.cs
- SessionStateSection.cs
- MethodBuilderInstantiation.cs
- ELinqQueryState.cs
- InvalidComObjectException.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- _LoggingObject.cs
- SmtpNtlmAuthenticationModule.cs
- MatrixStack.cs
- documentsequencetextcontainer.cs
- BuildProvider.cs
- DesignerAttribute.cs
- Decoder.cs
- AmbiguousMatchException.cs
- AssemblyBuilder.cs
- QilParameter.cs
- DesignColumnCollection.cs
- SHA384Managed.cs
- UIElement3DAutomationPeer.cs
- TrustManager.cs
- Compensation.cs
- DBCSCodePageEncoding.cs
- Utility.cs
- StructuredCompositeActivityDesigner.cs
- Int16Converter.cs
- XmlName.cs
- ScrollProperties.cs
- XmlWriterSettings.cs
- DecoratedNameAttribute.cs
- TextElementCollectionHelper.cs
- ExtensionQuery.cs
- EditingCoordinator.cs
- StorageBasedPackageProperties.cs
- SystemGatewayIPAddressInformation.cs
- SqlDataRecord.cs
- AlignmentYValidation.cs
- WebPartEditorCancelVerb.cs
- NavigationPropertySingletonExpression.cs
- IPPacketInformation.cs
- StorageMappingFragment.cs
- XmlElementAttributes.cs