Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / ProviderConnectionPoint.cs / 1305376 / ProviderConnectionPoint.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Reflection; using System.Web; using System.Web.Util; 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.Web; using System.Web.Util; 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
- DataReceivedEventArgs.cs
- CompositeFontInfo.cs
- ContextProperty.cs
- cookiecollection.cs
- AbstractDataSvcMapFileLoader.cs
- MappingModelBuildProvider.cs
- ConnectionStringsExpressionBuilder.cs
- CodeComment.cs
- IResourceProvider.cs
- LinqTreeNodeEvaluator.cs
- KerberosSecurityTokenProvider.cs
- Color.cs
- ResourceReferenceExpression.cs
- ContextDataSourceView.cs
- QuaternionRotation3D.cs
- BamlBinaryReader.cs
- XmlTextEncoder.cs
- Message.cs
- BitmapEffect.cs
- ButtonField.cs
- ReturnEventArgs.cs
- XmlNotation.cs
- _PooledStream.cs
- NonSerializedAttribute.cs
- FormsAuthentication.cs
- ConfigXmlComment.cs
- TableDetailsRow.cs
- DefaultSettingsSection.cs
- ResourceDisplayNameAttribute.cs
- ProfileSettingsCollection.cs
- PageBorderless.cs
- RSAOAEPKeyExchangeFormatter.cs
- AttachedPropertiesService.cs
- CommandCollectionEditor.cs
- XmlNamespaceDeclarationsAttribute.cs
- DecimalFormatter.cs
- BuildManagerHost.cs
- DiagnosticsConfigurationHandler.cs
- WindowsHyperlink.cs
- GeneralTransform3DGroup.cs
- BamlResourceDeserializer.cs
- XmlHierarchicalEnumerable.cs
- __Filters.cs
- RequestQueryParser.cs
- PartialCachingAttribute.cs
- NumberFunctions.cs
- FunctionQuery.cs
- MemoryMappedFile.cs
- Triplet.cs
- RadioButton.cs
- EventLogTraceListener.cs
- EraserBehavior.cs
- PolicyReader.cs
- CodeAttributeArgument.cs
- FtpWebResponse.cs
- WebAdminConfigurationHelper.cs
- Button.cs
- ToolStripItem.cs
- LinkLabelLinkClickedEvent.cs
- StrokeNodeOperations2.cs
- XmlDigitalSignatureProcessor.cs
- WorkflowServiceAttributes.cs
- CodeDirectoryCompiler.cs
- PersonalizationStateQuery.cs
- InternalDuplexChannelFactory.cs
- TargetFrameworkUtil.cs
- TraceUtils.cs
- DataServiceResponse.cs
- RegexBoyerMoore.cs
- IdentityModelStringsVersion1.cs
- CalendarSelectionChangedEventArgs.cs
- MatrixCamera.cs
- GcSettings.cs
- BinaryObjectReader.cs
- SectionUpdates.cs
- SoapReflectionImporter.cs
- DeobfuscatingStream.cs
- EnglishPluralizationService.cs
- SQLGuid.cs
- ConfigurationFileMap.cs
- HitTestParameters.cs
- figurelengthconverter.cs
- StatusBar.cs
- QueryableDataSourceHelper.cs
- CalendarAutomationPeer.cs
- XmlWhitespace.cs
- HttpHandlersSection.cs
- CollectionBuilder.cs
- CodeDirectiveCollection.cs
- ListItemCollection.cs
- IgnoreFlushAndCloseStream.cs
- Matrix.cs
- EnumerationRangeValidationUtil.cs
- FieldNameLookup.cs
- WebEncodingValidatorAttribute.cs
- MenuItemStyle.cs
- XmlDownloadManager.cs
- ObjectCloneHelper.cs
- WaveHeader.cs
- SmtpMail.cs