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
- CreateInstanceBinder.cs
- LoadedOrUnloadedOperation.cs
- counter.cs
- TripleDESCryptoServiceProvider.cs
- GridLengthConverter.cs
- PointLightBase.cs
- Rotation3D.cs
- CodeRemoveEventStatement.cs
- ActivityCompletionCallbackWrapper.cs
- ProxyFragment.cs
- WebException.cs
- SystemInformation.cs
- PageAsyncTaskManager.cs
- StringInfo.cs
- IDictionary.cs
- XmlAtomicValue.cs
- nulltextcontainer.cs
- Solver.cs
- ComponentGlyph.cs
- TableLayoutPanelCodeDomSerializer.cs
- SoapEnumAttribute.cs
- TraceProvider.cs
- ModelChangedEventArgsImpl.cs
- DataGridViewLinkColumn.cs
- XamlSerializationHelper.cs
- CodeBlockBuilder.cs
- XmlTextWriter.cs
- PostBackOptions.cs
- CodeIndexerExpression.cs
- VectorKeyFrameCollection.cs
- XmlSchemaInferenceException.cs
- ColumnHeaderCollectionEditor.cs
- BorderSidesEditor.cs
- PolyLineSegmentFigureLogic.cs
- Clock.cs
- BaseTemplateBuildProvider.cs
- ResourceDefaultValueAttribute.cs
- SoapAttributes.cs
- InternalResources.cs
- OleDbConnectionFactory.cs
- TextContainerChangedEventArgs.cs
- FileDialog.cs
- CorrelationManager.cs
- DataBindingCollection.cs
- ObjectHelper.cs
- NonBatchDirectoryCompiler.cs
- PublisherMembershipCondition.cs
- XmlDataSource.cs
- IPipelineRuntime.cs
- Stack.cs
- PropertyBuilder.cs
- EFDataModelProvider.cs
- SmiEventSink_DeferedProcessing.cs
- StrokeCollection2.cs
- StateManagedCollection.cs
- CompilerGeneratedAttribute.cs
- RequestResizeEvent.cs
- DataGridDetailsPresenter.cs
- DataGridViewCell.cs
- XPathScanner.cs
- CreateRefExpr.cs
- XamlTypeMapper.cs
- BidOverLoads.cs
- TextUtf8RawTextWriter.cs
- DbProviderFactoriesConfigurationHandler.cs
- MenuTracker.cs
- Odbc32.cs
- LinqMaximalSubtreeNominator.cs
- XmlNamedNodeMap.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ScrollBar.cs
- NamedPermissionSet.cs
- HtmlTitle.cs
- ControlAdapter.cs
- ExpressionEditorSheet.cs
- WindowsEditBox.cs
- Rfc2898DeriveBytes.cs
- TableLayoutPanelCellPosition.cs
- VersionedStreamOwner.cs
- BatchWriter.cs
- PkcsUtils.cs
- ValidationPropertyAttribute.cs
- Scheduler.cs
- DispatcherTimer.cs
- EntitySet.cs
- MatrixConverter.cs
- TraversalRequest.cs
- HtmlFormWrapper.cs
- EndpointDispatcher.cs
- ListViewSelectEventArgs.cs
- FileLogRecordEnumerator.cs
- InvalidCommandTreeException.cs
- WindowsTooltip.cs
- WebServiceEnumData.cs
- Evidence.cs
- RelationshipType.cs
- StaticExtension.cs
- DataObjectMethodAttribute.cs
- MediaTimeline.cs
- ContextInformation.cs