Code:
/ FX-1434 / FX-1434 / 1.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
- StylusButtonCollection.cs
- AsymmetricAlgorithm.cs
- ElementProxy.cs
- PassportPrincipal.cs
- PartitionResolver.cs
- WebPartAddingEventArgs.cs
- ObjectNavigationPropertyMapping.cs
- Encoder.cs
- TextTrailingWordEllipsis.cs
- webclient.cs
- PingReply.cs
- CodeSubDirectoriesCollection.cs
- Span.cs
- DataListCommandEventArgs.cs
- TabletDeviceInfo.cs
- ProcessManager.cs
- SmtpException.cs
- Blend.cs
- XmlSchemaSequence.cs
- ConstNode.cs
- RootAction.cs
- GrammarBuilderWildcard.cs
- ScriptBehaviorDescriptor.cs
- Help.cs
- StringToken.cs
- BaseCodeDomTreeGenerator.cs
- GridViewRowCollection.cs
- MobileControl.cs
- PreviewControlDesigner.cs
- Point3DCollectionValueSerializer.cs
- TextRangeSerialization.cs
- XmlSchemaType.cs
- DrawingServices.cs
- SqlGatherProducedAliases.cs
- ConfigurationStrings.cs
- GAC.cs
- MethodBuilder.cs
- SmiRecordBuffer.cs
- LineBreakRecord.cs
- ModifiableIteratorCollection.cs
- DbFunctionCommandTree.cs
- LockedActivityGlyph.cs
- ToolStripDropDownItem.cs
- BookmarkResumptionRecord.cs
- Helper.cs
- SqlNodeTypeOperators.cs
- ReadContentAsBinaryHelper.cs
- Debug.cs
- DrawingAttributesDefaultValueFactory.cs
- WebRequestModuleElementCollection.cs
- GridItemCollection.cs
- ExtractCollection.cs
- HttpResponseWrapper.cs
- SmiRequestExecutor.cs
- RtfToXamlReader.cs
- XmlStreamStore.cs
- SubMenuStyleCollectionEditor.cs
- Point.cs
- Lock.cs
- ListViewItemMouseHoverEvent.cs
- QueryPageSettingsEventArgs.cs
- TrackingMemoryStream.cs
- DataBinder.cs
- StringUtil.cs
- PickDesigner.xaml.cs
- SoapAttributeOverrides.cs
- Model3D.cs
- KnownTypeAttribute.cs
- SqlAliaser.cs
- X509Utils.cs
- HtmlPanelAdapter.cs
- CalendarDay.cs
- CodeAttributeArgument.cs
- ControlValuePropertyAttribute.cs
- IntersectQueryOperator.cs
- XMLSchema.cs
- DBCSCodePageEncoding.cs
- TableLayoutStyleCollection.cs
- HashMembershipCondition.cs
- LinkTarget.cs
- PropertyRef.cs
- WindowsGraphicsCacheManager.cs
- TextRangeSerialization.cs
- GacUtil.cs
- FileUpload.cs
- ControlUtil.cs
- CommandBinding.cs
- sqlser.cs
- AuthenticationServiceManager.cs
- PropertiesTab.cs
- StreamWithDictionary.cs
- MobileControlBuilder.cs
- SpnEndpointIdentityExtension.cs
- DirectoryObjectSecurity.cs
- MessagePropertyDescriptionCollection.cs
- SqlAliasesReferenced.cs
- ModelItemCollectionImpl.cs
- ToolStripPanelCell.cs
- CustomValidator.cs
- DragDropManager.cs