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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlTypesSchemaImporter.cs
- PhysicalFontFamily.cs
- CryptoHelper.cs
- ProvidePropertyAttribute.cs
- Journaling.cs
- XmlEncoding.cs
- ContextMenuStrip.cs
- ConfigurationSettings.cs
- VectorCollectionConverter.cs
- ProxyManager.cs
- TypeSystemHelpers.cs
- VarRemapper.cs
- Thread.cs
- CardSpaceSelector.cs
- DictationGrammar.cs
- Win32PrintDialog.cs
- ColorMap.cs
- SafeJobHandle.cs
- XmlNullResolver.cs
- CellCreator.cs
- ComplexLine.cs
- SqlClientMetaDataCollectionNames.cs
- NavigateEvent.cs
- TabPanel.cs
- ExtensionsSection.cs
- PenCursorManager.cs
- FontStyleConverter.cs
- TryCatch.cs
- NeutralResourcesLanguageAttribute.cs
- BrowserCapabilitiesCompiler.cs
- HtmlElement.cs
- ListBindableAttribute.cs
- HttpValueCollection.cs
- listitem.cs
- Privilege.cs
- ListView.cs
- WorkflowViewManager.cs
- DateTimeOffsetStorage.cs
- Mutex.cs
- SimpleWorkerRequest.cs
- RemoteWebConfigurationHostServer.cs
- XmlName.cs
- Table.cs
- SqlConnectionFactory.cs
- CapacityStreamGeometryContext.cs
- ProtectedProviderSettings.cs
- WebPartEditorCancelVerb.cs
- UIElementParaClient.cs
- MonthCalendar.cs
- FileRecordSequenceCompletedAsyncResult.cs
- SkinBuilder.cs
- ScriptingSectionGroup.cs
- PlatformNotSupportedException.cs
- SymLanguageVendor.cs
- DataControlCommands.cs
- EastAsianLunisolarCalendar.cs
- SmtpException.cs
- XhtmlConformanceSection.cs
- SrgsDocument.cs
- ProxyWebPartManager.cs
- ConfigXmlCDataSection.cs
- securitymgrsite.cs
- StorageEntityTypeMapping.cs
- SQLDecimalStorage.cs
- PhysicalOps.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ListControlActionList.cs
- ReaderOutput.cs
- WindowsToolbarItemAsMenuItem.cs
- Ref.cs
- BitmapData.cs
- LocalizableResourceBuilder.cs
- SequentialOutput.cs
- ErrorStyle.cs
- WinFormsSpinner.cs
- FacetEnabledSchemaElement.cs
- WsatAdminException.cs
- DataGridViewHeaderCell.cs
- SslStreamSecurityUpgradeProvider.cs
- ManualResetEvent.cs
- TextSelectionHighlightLayer.cs
- XPathDocumentNavigator.cs
- UnaryNode.cs
- ComProxy.cs
- ExpandCollapsePattern.cs
- EpmSourceTree.cs
- MsmqChannelFactory.cs
- CompileLiteralTextParser.cs
- SyndicationPerson.cs
- BrowserDefinition.cs
- RelatedPropertyManager.cs
- SettingsSavedEventArgs.cs
- UserControlBuildProvider.cs
- PreviewPrintController.cs
- XmlSerializerOperationGenerator.cs
- EventPrivateKey.cs
- ToolStripRenderEventArgs.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- LicenseContext.cs
- Journal.cs