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
- HyperLinkField.cs
- FixedSOMLineRanges.cs
- ChannelCredentials.cs
- XmlUrlResolver.cs
- ImageButton.cs
- StateFinalizationDesigner.cs
- ServiceOperationUIEditor.cs
- LicenseManager.cs
- PrePrepareMethodAttribute.cs
- ByteStream.cs
- NetTcpBindingElement.cs
- ServerValidateEventArgs.cs
- documentsequencetextpointer.cs
- MediaScriptCommandRoutedEventArgs.cs
- DesignOnlyAttribute.cs
- ContainerParagraph.cs
- HttpCacheVary.cs
- WebReferencesBuildProvider.cs
- SoapSchemaMember.cs
- TraceLevelHelper.cs
- HttpResponse.cs
- FlowDocumentScrollViewer.cs
- TableLayoutCellPaintEventArgs.cs
- ConfigurationConverterBase.cs
- ConsoleTraceListener.cs
- DiscardableAttribute.cs
- TextBlock.cs
- TemplateColumn.cs
- TextParaLineResult.cs
- StreamGeometryContext.cs
- ItemList.cs
- Menu.cs
- XmlRootAttribute.cs
- MouseDevice.cs
- ColorDialog.cs
- OptimalTextSource.cs
- MemoryMappedFileSecurity.cs
- RijndaelManaged.cs
- PeerTransportSecuritySettings.cs
- DataGridViewBindingCompleteEventArgs.cs
- OleDbReferenceCollection.cs
- CqlQuery.cs
- EditableRegion.cs
- DbFunctionCommandTree.cs
- OracleParameterCollection.cs
- Models.cs
- SimpleType.cs
- xmlNames.cs
- XmlBufferReader.cs
- GridSplitter.cs
- ReversePositionQuery.cs
- HtmlGenericControl.cs
- DbConvert.cs
- TableProviderWrapper.cs
- ApplicationFileParser.cs
- Stackframe.cs
- Int32.cs
- PermissionListSet.cs
- PtsPage.cs
- ArraySegment.cs
- Compiler.cs
- PageCatalogPart.cs
- WeakHashtable.cs
- XmlNodeReader.cs
- MenuAutoFormat.cs
- ParallelDesigner.cs
- XmlTypeMapping.cs
- TypeUsageBuilder.cs
- COM2ColorConverter.cs
- QuadTree.cs
- DayRenderEvent.cs
- XsltFunctions.cs
- TreeNodeCollectionEditor.cs
- SqlRemoveConstantOrderBy.cs
- IntegerFacetDescriptionElement.cs
- FusionWrap.cs
- QueryReaderSettings.cs
- ConfigurationManagerInternalFactory.cs
- SizeChangedInfo.cs
- MembershipPasswordException.cs
- TextCharacters.cs
- CLRBindingWorker.cs
- ConfigXmlText.cs
- HostingEnvironmentSection.cs
- GridProviderWrapper.cs
- PackagingUtilities.cs
- DataListItemCollection.cs
- UInt32Storage.cs
- AsyncStreamReader.cs
- WebConvert.cs
- MetadataCache.cs
- DynamicDataManager.cs
- MetadataProperty.cs
- DotExpr.cs
- VerificationException.cs
- InternalConfigConfigurationFactory.cs
- CaseInsensitiveOrdinalStringComparer.cs
- FusionWrap.cs
- DbBuffer.cs
- EmptyEnumerable.cs