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
- Switch.cs
- XmlValidatingReaderImpl.cs
- CngProperty.cs
- TextDocumentView.cs
- StyleBamlTreeBuilder.cs
- SQLDoubleStorage.cs
- HierarchicalDataBoundControlAdapter.cs
- ContentPlaceHolder.cs
- ZipPackage.cs
- CapabilitiesAssignment.cs
- securitycriticaldata.cs
- RuntimeCompatibilityAttribute.cs
- BitmapEffectInput.cs
- SafeRightsManagementSessionHandle.cs
- SQLBytesStorage.cs
- SerializationEventsCache.cs
- XmlObjectSerializerReadContextComplex.cs
- _SpnDictionary.cs
- RowBinding.cs
- HMACMD5.cs
- StorageComplexTypeMapping.cs
- SecurityUtils.cs
- SingleObjectCollection.cs
- WebPartAuthorizationEventArgs.cs
- ServiceRoute.cs
- AppDomainProtocolHandler.cs
- AdornerLayer.cs
- FileSystemWatcher.cs
- TreeNodeStyleCollection.cs
- AmbientProperties.cs
- ResponseStream.cs
- FirstMatchCodeGroup.cs
- UriScheme.cs
- EventLogPropertySelector.cs
- Resources.Designer.cs
- WebProxyScriptElement.cs
- MarkupCompilePass1.cs
- Simplifier.cs
- TrackingQuery.cs
- SQLDoubleStorage.cs
- WebUtility.cs
- DataListComponentEditor.cs
- WsdlExporter.cs
- DockingAttribute.cs
- AdCreatedEventArgs.cs
- InternalResources.cs
- SyndicationSerializer.cs
- TextBoxAutoCompleteSourceConverter.cs
- ImageField.cs
- RegistryKey.cs
- CoreSwitches.cs
- LocationReferenceEnvironment.cs
- DoubleKeyFrameCollection.cs
- securitycriticaldataformultiplegetandset.cs
- MatrixUtil.cs
- InkCanvasSelectionAdorner.cs
- ConfigurationValue.cs
- PropertyInformationCollection.cs
- OutKeywords.cs
- CustomAssemblyResolver.cs
- SubpageParaClient.cs
- DateTimeOffsetConverter.cs
- invalidudtexception.cs
- BasicCellRelation.cs
- WebSysDefaultValueAttribute.cs
- InvokePattern.cs
- ReferenceEqualityComparer.cs
- BamlStream.cs
- DataGridViewRowCancelEventArgs.cs
- Drawing.cs
- WindowsButton.cs
- RelationalExpressions.cs
- FilteredReadOnlyMetadataCollection.cs
- CodePrimitiveExpression.cs
- RadioButtonList.cs
- SerializerWriterEventHandlers.cs
- RemotingServices.cs
- WizardStepBase.cs
- FixedSOMContainer.cs
- ConditionalExpression.cs
- TakeQueryOptionExpression.cs
- SHA384Managed.cs
- input.cs
- ScopedKnownTypes.cs
- ContentType.cs
- SqlReferenceCollection.cs
- BitVector32.cs
- InvalidateEvent.cs
- MetadataArtifactLoaderComposite.cs
- ThreadAbortException.cs
- DrawingCollection.cs
- DashStyle.cs
- MenuItemAutomationPeer.cs
- HttpApplication.cs
- BufferedReadStream.cs
- WindowsSecurityToken.cs
- ServiceObjectContainer.cs
- BitStream.cs
- _ConnectStream.cs
- RevocationPoint.cs