Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceBusyException.cs
- ProcessModelInfo.cs
- HttpListenerPrefixCollection.cs
- ObjectMaterializedEventArgs.cs
- ShapingEngine.cs
- ObjectView.cs
- DbgUtil.cs
- ManagedFilter.cs
- DateTimePickerDesigner.cs
- StrokeCollection2.cs
- NumericUpDownAcceleration.cs
- AsyncResult.cs
- WebPartEventArgs.cs
- querybuilder.cs
- ColumnResizeAdorner.cs
- CngAlgorithm.cs
- ScrollViewer.cs
- UserControlAutomationPeer.cs
- Processor.cs
- UnsafeNativeMethods.cs
- RelatedEnd.cs
- RegionIterator.cs
- FileFormatException.cs
- InvalidCastException.cs
- WebPartUtil.cs
- TerminatorSinks.cs
- XmlTextReaderImpl.cs
- HighlightVisual.cs
- DbParameterHelper.cs
- ObjectDataSourceStatusEventArgs.cs
- RadioButtonStandardAdapter.cs
- Tuple.cs
- SetStoryboardSpeedRatio.cs
- HttpGetClientProtocol.cs
- ComplexLine.cs
- SerializationInfoEnumerator.cs
- TabItemAutomationPeer.cs
- NTAccount.cs
- SqlClientMetaDataCollectionNames.cs
- ListBox.cs
- ArrayMergeHelper.cs
- GenericAuthenticationEventArgs.cs
- WrapPanel.cs
- EditorPartChrome.cs
- AssertFilter.cs
- ProtocolViolationException.cs
- ToolStripSettings.cs
- uribuilder.cs
- TextSpanModifier.cs
- Divide.cs
- BookmarkEventArgs.cs
- HashLookup.cs
- DiagnosticStrings.cs
- listitem.cs
- SiblingIterators.cs
- SpoolingTask.cs
- WinFormsSecurity.cs
- ComplexBindingPropertiesAttribute.cs
- EntityDataSourceSelectedEventArgs.cs
- DataTablePropertyDescriptor.cs
- VisualBrush.cs
- Literal.cs
- WebPartDescriptionCollection.cs
- RepeatButtonAutomationPeer.cs
- Bezier.cs
- ListBoxAutomationPeer.cs
- DataGridSortCommandEventArgs.cs
- NativeMethods.cs
- HostingEnvironmentException.cs
- FastPropertyAccessor.cs
- MatrixConverter.cs
- Brushes.cs
- OracleLob.cs
- CachedRequestParams.cs
- InkCanvasFeedbackAdorner.cs
- TrackingMemoryStreamFactory.cs
- CodeDomSerializer.cs
- BuildProvider.cs
- Atom10ItemFormatter.cs
- PageStatePersister.cs
- SimpleExpression.cs
- XmlAnyElementAttributes.cs
- TrustLevel.cs
- UriWriter.cs
- ThreadPool.cs
- X509CertificateValidator.cs
- categoryentry.cs
- SafeSystemMetrics.cs
- TCEAdapterGenerator.cs
- EntityDataSourceEntityTypeFilterItem.cs
- Attributes.cs
- Cloud.cs
- CodeExporter.cs
- DocumentViewerConstants.cs
- DataBinding.cs
- FindCriteria11.cs
- HtmlContainerControl.cs
- SchemaComplexType.cs
- PropertyIDSet.cs
- Input.cs