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
- ECDiffieHellmanPublicKey.cs
- BCryptNative.cs
- _NestedMultipleAsyncResult.cs
- DataSourceProvider.cs
- SoapReflectionImporter.cs
- Resources.Designer.cs
- ControlTemplate.cs
- InputScope.cs
- Pointer.cs
- XmlSchemas.cs
- WindowsContainer.cs
- IApplicationTrustManager.cs
- DetailsViewUpdateEventArgs.cs
- PropertyDescriptorCollection.cs
- XmlCompatibilityReader.cs
- SqlCacheDependencyDatabase.cs
- StorageComplexPropertyMapping.cs
- ReflectionTypeLoadException.cs
- DetailsViewModeEventArgs.cs
- FileDetails.cs
- ControlCachePolicy.cs
- StringResourceManager.cs
- TextBoxAutomationPeer.cs
- WrappedOptions.cs
- GeneralTransform3DGroup.cs
- OleDbInfoMessageEvent.cs
- SafeMemoryMappedViewHandle.cs
- COAUTHINFO.cs
- MaskedTextProvider.cs
- XsltFunctions.cs
- FactoryId.cs
- CodeAttributeDeclarationCollection.cs
- MdiWindowListStrip.cs
- SqlDataSource.cs
- XmlRootAttribute.cs
- ISAPIRuntime.cs
- CompModSwitches.cs
- WindowsListViewItemStartMenu.cs
- HelpEvent.cs
- DataExpression.cs
- OutKeywords.cs
- DataGridViewCellParsingEventArgs.cs
- objectquery_tresulttype.cs
- ScriptBehaviorDescriptor.cs
- ByteKeyFrameCollection.cs
- SettingsSection.cs
- StringToken.cs
- ReflectPropertyDescriptor.cs
- PasswordRecovery.cs
- MetabaseSettingsIis7.cs
- Timer.cs
- EntityParameter.cs
- GradientBrush.cs
- SingleTagSectionHandler.cs
- Lazy.cs
- ComponentEditorPage.cs
- ServiceProviders.cs
- CompilerResults.cs
- HtmlObjectListAdapter.cs
- LogicalExpressionEditor.cs
- Helpers.cs
- PresentationAppDomainManager.cs
- DrawingAttributeSerializer.cs
- ReflectionServiceProvider.cs
- TextTreeFixupNode.cs
- NameSpaceExtractor.cs
- DataGridViewBindingCompleteEventArgs.cs
- ProxyWebPartManager.cs
- HttpDictionary.cs
- XmlSchemaRedefine.cs
- EditingCommands.cs
- ReferenceEqualityComparer.cs
- EventLogEntryCollection.cs
- MenuCommandsChangedEventArgs.cs
- WrapPanel.cs
- SqlBulkCopy.cs
- MatcherBuilder.cs
- OleDbPropertySetGuid.cs
- VideoDrawing.cs
- CategoryNameCollection.cs
- DecoratedNameAttribute.cs
- WindowInteractionStateTracker.cs
- FixedPage.cs
- BitmapCodecInfo.cs
- XmlNamespaceManager.cs
- MemoryPressure.cs
- ControlAdapter.cs
- DesignerProperties.cs
- ScriptingSectionGroup.cs
- StyleXamlParser.cs
- HashMembershipCondition.cs
- Pointer.cs
- ViewManager.cs
- TextElement.cs
- OdbcTransaction.cs
- DataTableCollection.cs
- TraceEventCache.cs
- FormViewCommandEventArgs.cs
- Socket.cs
- DataGridViewTextBoxEditingControl.cs