Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SchemaAttDef.cs
- BaseCodeDomTreeGenerator.cs
- PrintPageEvent.cs
- MD5.cs
- HostExecutionContextManager.cs
- ModuleBuilderData.cs
- HttpHandlersSection.cs
- IMembershipProvider.cs
- PresentationSource.cs
- DbDeleteCommandTree.cs
- DataViewSetting.cs
- RequestQueryProcessor.cs
- SelectionPattern.cs
- InputScopeConverter.cs
- ResourceWriter.cs
- XmlSecureResolver.cs
- Size3DConverter.cs
- TableStyle.cs
- httpapplicationstate.cs
- UnknownBitmapEncoder.cs
- AsnEncodedData.cs
- DateTimeConverter2.cs
- TypeDescriptor.cs
- ViewRendering.cs
- NativeMethods.cs
- ToolStripOverflow.cs
- HtmlEmptyTagControlBuilder.cs
- ScriptManagerProxy.cs
- GridViewUpdateEventArgs.cs
- WebServiceEnumData.cs
- PenThread.cs
- CompiledELinqQueryState.cs
- ScriptingScriptResourceHandlerSection.cs
- Misc.cs
- Variant.cs
- OleCmdHelper.cs
- StateDesigner.Layouts.cs
- FieldNameLookup.cs
- DirectoryLocalQuery.cs
- TdsParser.cs
- TriState.cs
- BreakRecordTable.cs
- CodeEventReferenceExpression.cs
- CodeExpressionRuleDeclaration.cs
- AssemblyAttributesGoHere.cs
- linebase.cs
- MenuItem.cs
- PersonalizationDictionary.cs
- OneOfConst.cs
- EmissiveMaterial.cs
- CallbackValidator.cs
- WebPartVerbCollection.cs
- GeometryModel3D.cs
- HtmlInputRadioButton.cs
- StringUtil.cs
- BaseParagraph.cs
- LoginAutoFormat.cs
- WithParamAction.cs
- ArgumentOutOfRangeException.cs
- SettingsProperty.cs
- ModuleBuilder.cs
- RangeValuePattern.cs
- GridViewEditEventArgs.cs
- Ref.cs
- SqlPersonalizationProvider.cs
- BaseComponentEditor.cs
- BigInt.cs
- StringUtil.cs
- PolyLineSegmentFigureLogic.cs
- Matrix3DStack.cs
- CodeDOMUtility.cs
- PrinterSettings.cs
- SparseMemoryStream.cs
- CallbackValidatorAttribute.cs
- ChangeDirector.cs
- TemplateField.cs
- ObjectConverter.cs
- TypeForwardedToAttribute.cs
- MDIClient.cs
- RuntimeEnvironment.cs
- TagPrefixInfo.cs
- BitmapCache.cs
- TimeoutException.cs
- ProfileInfo.cs
- TextBoxAutoCompleteSourceConverter.cs
- LinqDataSourceUpdateEventArgs.cs
- MaskInputRejectedEventArgs.cs
- SurrogateSelector.cs
- WindowsGrip.cs
- GraphicsContainer.cs
- ObjectViewQueryResultData.cs
- SHA512Managed.cs
- HttpListenerResponse.cs
- HtmlShimManager.cs
- AnimationTimeline.cs
- SafeCryptoHandles.cs
- AnnotationStore.cs
- MemberMaps.cs
- BufferedGraphicsManager.cs
- RowCache.cs