Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DisplayMemberTemplateSelector.cs
- SmtpException.cs
- OSFeature.cs
- SimpleMailWebEventProvider.cs
- CheckoutException.cs
- ThreadStateException.cs
- DataRow.cs
- CustomError.cs
- ObjectDataSourceEventArgs.cs
- TransactionScope.cs
- securitycriticaldata.cs
- TextFormatterImp.cs
- ImageListDesigner.cs
- SystemPens.cs
- HtmlInputSubmit.cs
- TextTrailingWordEllipsis.cs
- WmpBitmapEncoder.cs
- NamedPipeDuplicateContext.cs
- PictureBox.cs
- XmlSchemaSimpleContent.cs
- RootBuilder.cs
- CompiledRegexRunnerFactory.cs
- XPathMultyIterator.cs
- TextLineBreak.cs
- Helpers.cs
- ImmutablePropertyDescriptorGridEntry.cs
- IteratorDescriptor.cs
- PropertyGridView.cs
- TextBoxBaseDesigner.cs
- Emitter.cs
- MonthChangedEventArgs.cs
- SvcMapFileLoader.cs
- X509Extension.cs
- CloudCollection.cs
- SocketAddress.cs
- ComplexBindingPropertiesAttribute.cs
- ThreadAbortException.cs
- BindingMemberInfo.cs
- AuthenticationModeHelper.cs
- DataGridPageChangedEventArgs.cs
- CodeRemoveEventStatement.cs
- WebReferenceOptions.cs
- ProfileEventArgs.cs
- PenContexts.cs
- Point4DConverter.cs
- Identity.cs
- UserMapPath.cs
- MulticastNotSupportedException.cs
- DataGridViewComboBoxColumnDesigner.cs
- OleAutBinder.cs
- LocalBuilder.cs
- Point4DValueSerializer.cs
- PointValueSerializer.cs
- unitconverter.cs
- DataExchangeServiceBinder.cs
- WebRequest.cs
- WizardStepBase.cs
- Variant.cs
- TraceListeners.cs
- CodeGenerator.cs
- FormViewPageEventArgs.cs
- MouseEvent.cs
- ImageDrawing.cs
- streamingZipPartStream.cs
- HttpClientProtocol.cs
- AttributeSetAction.cs
- EntryPointNotFoundException.cs
- Solver.cs
- ExceptionHandler.cs
- GestureRecognitionResult.cs
- ArrangedElementCollection.cs
- AnnotationResourceCollection.cs
- CompositeControl.cs
- VarRemapper.cs
- ObjectQueryState.cs
- WaveHeader.cs
- TypeValidationEventArgs.cs
- LocalizeDesigner.cs
- AsymmetricKeyExchangeFormatter.cs
- SqlStatistics.cs
- GenericEnumerator.cs
- WebBrowser.cs
- RequestBringIntoViewEventArgs.cs
- _LocalDataStore.cs
- TextTrailingWordEllipsis.cs
- ExternalFile.cs
- ContentTextAutomationPeer.cs
- StorageScalarPropertyMapping.cs
- DeadCharTextComposition.cs
- KeyPressEvent.cs
- ContainerSelectorGlyph.cs
- ObjectConverter.cs
- TreeViewImageGenerator.cs
- BufferAllocator.cs
- WeakReferenceEnumerator.cs
- ShapingEngine.cs
- LeaseManager.cs
- NativeRightsManagementAPIsStructures.cs
- DbRetry.cs
- EnlistmentState.cs