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
- RIPEMD160.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- FileStream.cs
- BreakRecordTable.cs
- EntityDataSourceReferenceGroup.cs
- ThemeDictionaryExtension.cs
- StorageEntityTypeMapping.cs
- MenuScrollingVisibilityConverter.cs
- ServiceDesigner.xaml.cs
- Trace.cs
- BaseCodeDomTreeGenerator.cs
- Thumb.cs
- ParserContext.cs
- Accessors.cs
- TaiwanLunisolarCalendar.cs
- LinqDataSource.cs
- HorizontalAlignConverter.cs
- SortExpressionBuilder.cs
- ProgressBar.cs
- WorkflowFileItem.cs
- XmlMtomReader.cs
- Int16KeyFrameCollection.cs
- HttpResponseInternalWrapper.cs
- SQLMoney.cs
- SessionPageStateSection.cs
- Int32RectValueSerializer.cs
- ElementMarkupObject.cs
- DateTimeConstantAttribute.cs
- Rect3D.cs
- Block.cs
- ByteFacetDescriptionElement.cs
- Rfc2898DeriveBytes.cs
- Image.cs
- ButtonChrome.cs
- ControlUtil.cs
- ViewStateModeByIdAttribute.cs
- ZeroOpNode.cs
- EntityViewGenerationAttribute.cs
- Opcode.cs
- TabItem.cs
- BufferedGraphicsManager.cs
- TextBoxView.cs
- SystemColorTracker.cs
- ToolboxItemFilterAttribute.cs
- CharacterMetricsDictionary.cs
- ToolboxBitmapAttribute.cs
- IdentityManager.cs
- DocumentReferenceCollection.cs
- DataSet.cs
- ElementMarkupObject.cs
- Overlapped.cs
- RectAnimationBase.cs
- DiscoveryDocumentLinksPattern.cs
- ExpressionBuilderContext.cs
- wmiprovider.cs
- PropertyChangedEventManager.cs
- SecurityHeaderElementInferenceEngine.cs
- LineVisual.cs
- SpeechAudioFormatInfo.cs
- PageAsyncTask.cs
- PointCollection.cs
- ItemContainerGenerator.cs
- ReaderWriterLockWrapper.cs
- SaveFileDialog.cs
- TableRow.cs
- formatter.cs
- Label.cs
- MimeTypeAttribute.cs
- SHA384.cs
- ConnectionPoolManager.cs
- PrintControllerWithStatusDialog.cs
- SqlCacheDependencyDatabaseCollection.cs
- Compiler.cs
- WorkflowDebuggerSteppingAttribute.cs
- DbExpressionVisitor.cs
- SafeMarshalContext.cs
- SmiConnection.cs
- BinaryFormatter.cs
- DataGridViewCellCollection.cs
- SoundPlayerAction.cs
- SubpageParagraph.cs
- AsymmetricCryptoHandle.cs
- DecimalFormatter.cs
- WebConfigurationHostFileChange.cs
- _ListenerRequestStream.cs
- XmlCompatibilityReader.cs
- ObjectItemCollection.cs
- FunctionCommandText.cs
- AsymmetricSignatureFormatter.cs
- CalendarDateChangedEventArgs.cs
- DockAndAnchorLayout.cs
- HyperLinkDesigner.cs
- ExpressionEvaluator.cs
- PropertyGroupDescription.cs
- SchemaImporterExtensionsSection.cs
- ConsoleTraceListener.cs
- StatusBar.cs
- X509RawDataKeyIdentifierClause.cs
- ProfilePropertySettingsCollection.cs
- HostingMessageProperty.cs