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
- PageThemeParser.cs
- QueryOpeningEnumerator.cs
- OleDbStruct.cs
- OdbcFactory.cs
- XmlSchemaComplexContentExtension.cs
- BitmapMetadataBlob.cs
- HtmlValidationSummaryAdapter.cs
- ComponentCommands.cs
- TextShapeableCharacters.cs
- TreeViewHitTestInfo.cs
- ControlBindingsCollection.cs
- OleDbDataAdapter.cs
- ServiceHostFactory.cs
- CodeAccessPermission.cs
- FlowDocumentFormatter.cs
- ThreadAbortException.cs
- PropertyBuilder.cs
- SchemaImporterExtensionElementCollection.cs
- StringValidatorAttribute.cs
- SystemIPGlobalStatistics.cs
- MultiByteCodec.cs
- XmlRawWriter.cs
- TextParagraphProperties.cs
- TextSchema.cs
- EventDescriptorCollection.cs
- XamlReader.cs
- EntityParameter.cs
- AsymmetricAlgorithm.cs
- PeerApplicationLaunchInfo.cs
- DetailsViewInsertedEventArgs.cs
- TraceSource.cs
- DesignColumn.cs
- MouseEventArgs.cs
- XmlWrappingReader.cs
- HtmlInputCheckBox.cs
- SingleAnimation.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- DocumentStream.cs
- GenericUriParser.cs
- SocketElement.cs
- ICollection.cs
- XDRSchema.cs
- SocketException.cs
- StronglyTypedResourceBuilder.cs
- WorkflowInstanceAbortedRecord.cs
- objectresult_tresulttype.cs
- OdbcConnectionString.cs
- InternalBase.cs
- CorePropertiesFilter.cs
- EntityDataSourceEntitySetNameItem.cs
- RTLAwareMessageBox.cs
- XmlText.cs
- DrawingDrawingContext.cs
- DiffuseMaterial.cs
- DataGridViewButtonColumn.cs
- UpdateProgress.cs
- ListControlDesigner.cs
- XmlDictionaryReader.cs
- StorageModelBuildProvider.cs
- SendingRequestEventArgs.cs
- HtmlShimManager.cs
- regiisutil.cs
- ChannelDemuxer.cs
- FramingFormat.cs
- IEnumerable.cs
- RetrieveVirtualItemEventArgs.cs
- UnsafeNativeMethodsCLR.cs
- OleDbInfoMessageEvent.cs
- WmlPageAdapter.cs
- NativeMethods.cs
- ObjectItemAssemblyLoader.cs
- ZipPackagePart.cs
- ConnectionOrientedTransportElement.cs
- RootProjectionNode.cs
- Misc.cs
- X509Certificate2.cs
- EntityViewGenerator.cs
- UTF8Encoding.cs
- StrongNameHelpers.cs
- MethodBuilder.cs
- DbConnectionPoolOptions.cs
- Util.cs
- FunctionUpdateCommand.cs
- ReferenceService.cs
- BindMarkupExtensionSerializer.cs
- SqlClientWrapperSmiStream.cs
- MemberCollection.cs
- DataSourceCacheDurationConverter.cs
- StorageSetMapping.cs
- Frame.cs
- CopyEncoder.cs
- HTMLTextWriter.cs
- UserControl.cs
- AddDataControlFieldDialog.cs
- AutoGeneratedField.cs
- UserControl.cs
- BufferedGraphics.cs
- ClientType.cs
- StreamGeometry.cs
- MouseGestureValueSerializer.cs