Code:
/ DotNET / DotNET / 8.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
- CalendarTable.cs
- SizeAnimationClockResource.cs
- MouseOverProperty.cs
- FtpCachePolicyElement.cs
- followingsibling.cs
- MetaModel.cs
- SmiXetterAccessMap.cs
- BufferBuilder.cs
- NativeMethodsOther.cs
- BooleanToVisibilityConverter.cs
- MappingSource.cs
- MeasurementDCInfo.cs
- DataKeyArray.cs
- ClientConvert.cs
- ServiceSettingsResponseInfo.cs
- WebScriptServiceHost.cs
- PartialCachingControl.cs
- DataKey.cs
- loginstatus.cs
- DBPropSet.cs
- ListArgumentProvider.cs
- LoadedOrUnloadedOperation.cs
- XPathDocument.cs
- HashCodeCombiner.cs
- MSAAWinEventWrap.cs
- TransformPatternIdentifiers.cs
- RemotingClientProxy.cs
- XmlRootAttribute.cs
- PlainXmlSerializer.cs
- HttpModuleActionCollection.cs
- WeakReferenceEnumerator.cs
- DataObjectCopyingEventArgs.cs
- Itemizer.cs
- FieldBuilder.cs
- TransformPatternIdentifiers.cs
- pingexception.cs
- LinearQuaternionKeyFrame.cs
- SiteMapNodeCollection.cs
- NavigationPropertySingletonExpression.cs
- PointCollection.cs
- PropertyNames.cs
- EntryIndex.cs
- PermissionAttributes.cs
- HandleRef.cs
- WebPartCatalogCloseVerb.cs
- ActivityValidationServices.cs
- PrintingPermissionAttribute.cs
- ColorTranslator.cs
- ControlCommandSet.cs
- PageSetupDialog.cs
- Vector3DCollectionConverter.cs
- XmlValueConverter.cs
- FieldNameLookup.cs
- WmlValidatorAdapter.cs
- _NetworkingPerfCounters.cs
- BrushProxy.cs
- XmlNamespaceMapping.cs
- ResolveNextArgumentWorkItem.cs
- ActivityWithResultWrapper.cs
- Metadata.cs
- ResourceProperty.cs
- ToolStripStatusLabel.cs
- ScriptMethodAttribute.cs
- DesignTimeTemplateParser.cs
- HttpModulesSection.cs
- MethodBuilderInstantiation.cs
- CircleHotSpot.cs
- GeneralTransform2DTo3D.cs
- LoginAutoFormat.cs
- ToolStripPanelRow.cs
- XmlSchemaGroup.cs
- ScriptingProfileServiceSection.cs
- WebAdminConfigurationHelper.cs
- TaskScheduler.cs
- GlobalDataBindingHandler.cs
- XPathMultyIterator.cs
- GestureRecognitionResult.cs
- XmlAnyElementAttributes.cs
- SoapFormatExtensions.cs
- QuadraticEase.cs
- EntryIndex.cs
- SelectionHighlightInfo.cs
- FlowDocument.cs
- InProcStateClientManager.cs
- InputScopeNameConverter.cs
- TraceEventCache.cs
- FontFamilyValueSerializer.cs
- Vector3DValueSerializer.cs
- MD5Cng.cs
- ComboBoxItem.cs
- AttachmentService.cs
- DataStorage.cs
- CompilerTypeWithParams.cs
- HighlightVisual.cs
- UnsafeNativeMethods.cs
- ButtonChrome.cs
- OperationInvokerTrace.cs
- RecommendedAsConfigurableAttribute.cs
- categoryentry.cs
- X509IssuerSerialKeyIdentifierClause.cs