Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartConnectionsEventArgs.cs / 1 / WebPartConnectionsEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.WebParts {
using System;
using System.Security.Permissions;
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class WebPartConnectionsEventArgs : EventArgs {
private WebPart _provider;
private ProviderConnectionPoint _providerConnectionPoint;
private WebPart _consumer;
private ConsumerConnectionPoint _consumerConnectionPoint;
private WebPartConnection _connection;
public WebPartConnectionsEventArgs(WebPart provider, ProviderConnectionPoint providerConnectionPoint,
WebPart consumer, ConsumerConnectionPoint consumerConnectionPoint) {
// Arguments may be null, when deleting a connection because a part is no longer on the page
_provider = provider;
_providerConnectionPoint = providerConnectionPoint;
_consumer = consumer;
_consumerConnectionPoint = consumerConnectionPoint;
}
public WebPartConnectionsEventArgs(WebPart provider, ProviderConnectionPoint providerConnectionPoint,
WebPart consumer, ConsumerConnectionPoint consumerConnectionPoint,
WebPartConnection connection) : this(provider, providerConnectionPoint,
consumer, consumerConnectionPoint) {
_connection = connection;
}
public WebPartConnection Connection {
get {
return _connection;
}
}
public WebPart Consumer {
get {
return _consumer;
}
}
public ConsumerConnectionPoint ConsumerConnectionPoint {
get {
return _consumerConnectionPoint;
}
}
public WebPart Provider {
get {
return _provider;
}
}
public ProviderConnectionPoint ProviderConnectionPoint {
get {
return _providerConnectionPoint;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.WebParts {
using System;
using System.Security.Permissions;
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class WebPartConnectionsEventArgs : EventArgs {
private WebPart _provider;
private ProviderConnectionPoint _providerConnectionPoint;
private WebPart _consumer;
private ConsumerConnectionPoint _consumerConnectionPoint;
private WebPartConnection _connection;
public WebPartConnectionsEventArgs(WebPart provider, ProviderConnectionPoint providerConnectionPoint,
WebPart consumer, ConsumerConnectionPoint consumerConnectionPoint) {
// Arguments may be null, when deleting a connection because a part is no longer on the page
_provider = provider;
_providerConnectionPoint = providerConnectionPoint;
_consumer = consumer;
_consumerConnectionPoint = consumerConnectionPoint;
}
public WebPartConnectionsEventArgs(WebPart provider, ProviderConnectionPoint providerConnectionPoint,
WebPart consumer, ConsumerConnectionPoint consumerConnectionPoint,
WebPartConnection connection) : this(provider, providerConnectionPoint,
consumer, consumerConnectionPoint) {
_connection = connection;
}
public WebPartConnection Connection {
get {
return _connection;
}
}
public WebPart Consumer {
get {
return _consumer;
}
}
public ConsumerConnectionPoint ConsumerConnectionPoint {
get {
return _consumerConnectionPoint;
}
}
public WebPart Provider {
get {
return _provider;
}
}
public ProviderConnectionPoint ProviderConnectionPoint {
get {
return _providerConnectionPoint;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataContractSerializer.cs
- PromptBuilder.cs
- NullableDoubleAverageAggregationOperator.cs
- Viewport2DVisual3D.cs
- GeneralTransformCollection.cs
- WindowsFormsHostPropertyMap.cs
- WebPartTransformerAttribute.cs
- WindowsStartMenu.cs
- EntityContainerRelationshipSetEnd.cs
- DeferredBinaryDeserializerExtension.cs
- InvalidOperationException.cs
- GlyphingCache.cs
- FilterException.cs
- SmtpSection.cs
- UpdateDelegates.Generated.cs
- ColorConvertedBitmap.cs
- GridEntryCollection.cs
- UpWmlMobileTextWriter.cs
- StylusCaptureWithinProperty.cs
- NativeMethods.cs
- EventArgs.cs
- SerializationEventsCache.cs
- BasicAsyncResult.cs
- XmlNamespaceManager.cs
- XPathDocumentIterator.cs
- SecurityPermission.cs
- ColumnResizeUndoUnit.cs
- ValidatorCompatibilityHelper.cs
- CategoryNameCollection.cs
- SqlCharStream.cs
- AmbientValueAttribute.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- OracleLob.cs
- SafeNativeMemoryHandle.cs
- InputLanguage.cs
- DebugView.cs
- WebSysDisplayNameAttribute.cs
- PointHitTestResult.cs
- ElementAtQueryOperator.cs
- FontInfo.cs
- RegexInterpreter.cs
- LocatorManager.cs
- AnnotationComponentChooser.cs
- FigureParaClient.cs
- CryptoHelper.cs
- ObjectStateEntryDbDataRecord.cs
- StateInitializationDesigner.cs
- SafeCryptHandles.cs
- ArgumentOutOfRangeException.cs
- ToolStripGrip.cs
- Overlapped.cs
- QilReference.cs
- FormsAuthenticationUserCollection.cs
- Drawing.cs
- WorkflowServiceBuildProvider.cs
- PathBox.cs
- MarshalByRefObject.cs
- LabelLiteral.cs
- ReferenceAssemblyAttribute.cs
- _RequestCacheProtocol.cs
- SecurityIdentifierElementCollection.cs
- MinimizableAttributeTypeConverter.cs
- CallbackValidatorAttribute.cs
- PreloadedPackages.cs
- DataGrid.cs
- XmlNodeChangedEventArgs.cs
- ConstantSlot.cs
- NullRuntimeConfig.cs
- DataServiceQueryException.cs
- Margins.cs
- ACE.cs
- MemberInfoSerializationHolder.cs
- MessageHeaderAttribute.cs
- Int32CollectionConverter.cs
- XPathScanner.cs
- PathNode.cs
- FunctionCommandText.cs
- CodeExpressionStatement.cs
- Preprocessor.cs
- ImageIndexConverter.cs
- AutomationProperties.cs
- ProfileGroupSettingsCollection.cs
- UserControlParser.cs
- HttpCachePolicy.cs
- OpenTypeCommon.cs
- KeyValueConfigurationCollection.cs
- Type.cs
- ConfigXmlDocument.cs
- WorkflowTraceTransfer.cs
- PeerCustomResolverSettings.cs
- NonParentingControl.cs
- CompoundFileStreamReference.cs
- ContentValidator.cs
- PeerApplicationLaunchInfo.cs
- XPathNavigator.cs
- StrokeNode.cs
- DesignerDataRelationship.cs
- DurableInstance.cs
- CreateUserErrorEventArgs.cs
- XamlDesignerSerializationManager.cs