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
- PassportAuthentication.cs
- UnknownWrapper.cs
- ConfigurationManagerHelper.cs
- PropertyInfo.cs
- TableLayoutSettings.cs
- Listbox.cs
- DataGridViewTopRowAccessibleObject.cs
- ObjectSecurity.cs
- QueryStatement.cs
- CanonicalizationDriver.cs
- ArgumentsParser.cs
- ContainerFilterService.cs
- WmlControlAdapter.cs
- LineSegment.cs
- LinqToSqlWrapper.cs
- RNGCryptoServiceProvider.cs
- CaseExpr.cs
- BinaryConverter.cs
- ToolStripGripRenderEventArgs.cs
- XsltSettings.cs
- CreateSequence.cs
- TextStore.cs
- DatatypeImplementation.cs
- ConsumerConnectionPointCollection.cs
- WebExceptionStatus.cs
- EmissiveMaterial.cs
- XmlSchemaElement.cs
- MethodBuilder.cs
- DataListItemCollection.cs
- InternalConfigSettingsFactory.cs
- ManualWorkflowSchedulerService.cs
- KeyboardEventArgs.cs
- FixedDSBuilder.cs
- QueryOptionExpression.cs
- ItemContainerPattern.cs
- ProtectedConfigurationProviderCollection.cs
- Wow64ConfigurationLoader.cs
- WebBrowserProgressChangedEventHandler.cs
- TdsParameterSetter.cs
- ParameterCollection.cs
- StringSource.cs
- TableLayoutColumnStyleCollection.cs
- SByteStorage.cs
- MasterPage.cs
- MenuBindingsEditorForm.cs
- Size.cs
- WaitHandle.cs
- StatusStrip.cs
- PropertyPathWorker.cs
- _SslStream.cs
- AnimationTimeline.cs
- BooleanToVisibilityConverter.cs
- WindowsIdentity.cs
- IProvider.cs
- TrackingProvider.cs
- XmlCountingReader.cs
- PointHitTestResult.cs
- ToolboxService.cs
- MissingMethodException.cs
- AppDomainEvidenceFactory.cs
- StorageEndPropertyMapping.cs
- Journal.cs
- SystemColorTracker.cs
- VSWCFServiceContractGenerator.cs
- XmlWriterSettings.cs
- METAHEADER.cs
- CodeDomSerializerException.cs
- DefaultValueTypeConverter.cs
- _ChunkParse.cs
- RemotingServices.cs
- CorrelationQueryBehavior.cs
- UnsafeNativeMethods.cs
- Point3DAnimation.cs
- QilTernary.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- UriWriter.cs
- FlowLayoutPanelDesigner.cs
- TypeDescriptionProviderAttribute.cs
- Shape.cs
- UrlMappingCollection.cs
- ResponseStream.cs
- VarRefManager.cs
- SqlStream.cs
- ExpressionBuilder.cs
- ApplicationActivator.cs
- ChineseLunisolarCalendar.cs
- TableLayoutCellPaintEventArgs.cs
- PropertyOrder.cs
- BindingsCollection.cs
- Pkcs9Attribute.cs
- SelectionList.cs
- CodeNamespace.cs
- FormViewDeletedEventArgs.cs
- LocalValueEnumerator.cs
- FastPropertyAccessor.cs
- TraceHandlerErrorFormatter.cs
- Cursors.cs
- HttpRequestTraceRecord.cs
- ToggleProviderWrapper.cs
- AnnouncementEventArgs.cs