Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartConnectionsCancelEventArgs.cs / 1305376 / WebPartConnectionsCancelEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.WebParts {
using System;
using System.ComponentModel;
public class WebPartConnectionsCancelEventArgs : CancelEventArgs {
private WebPart _provider;
private ProviderConnectionPoint _providerConnectionPoint;
private WebPart _consumer;
private ConsumerConnectionPoint _consumerConnectionPoint;
private WebPartConnection _connection;
public WebPartConnectionsCancelEventArgs(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 WebPartConnectionsCancelEventArgs(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.ComponentModel;
public class WebPartConnectionsCancelEventArgs : CancelEventArgs {
private WebPart _provider;
private ProviderConnectionPoint _providerConnectionPoint;
private WebPart _consumer;
private ConsumerConnectionPoint _consumerConnectionPoint;
private WebPartConnection _connection;
public WebPartConnectionsCancelEventArgs(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 WebPartConnectionsCancelEventArgs(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
- FocusTracker.cs
- ScriptBehaviorDescriptor.cs
- DataGridViewTextBoxEditingControl.cs
- WorkflowInlining.cs
- PropertyChangeTracker.cs
- EnumerableRowCollectionExtensions.cs
- PhysicalFontFamily.cs
- PixelFormats.cs
- EditorServiceContext.cs
- MeshGeometry3D.cs
- LazyTextWriterCreator.cs
- EntityDataSourceWrapperCollection.cs
- ProcessHostServerConfig.cs
- DataGridViewCellCollection.cs
- DataFieldConverter.cs
- XPathDescendantIterator.cs
- MatrixTransform3D.cs
- MenuItemStyle.cs
- MappingException.cs
- COAUTHINFO.cs
- objectquery_tresulttype.cs
- SqlNotificationRequest.cs
- ProcessThreadCollection.cs
- TransformerTypeCollection.cs
- CharacterBufferReference.cs
- RoutedPropertyChangedEventArgs.cs
- DataSvcMapFile.cs
- SqlStream.cs
- ZipFileInfoCollection.cs
- WinFormsComponentEditor.cs
- NTAccount.cs
- SqlDataSourceCache.cs
- AccessorTable.cs
- LowerCaseStringConverter.cs
- RSAPKCS1SignatureFormatter.cs
- Int64Animation.cs
- SqlDataSourceCommandEventArgs.cs
- SocketElement.cs
- _KerberosClient.cs
- EndpointConfigContainer.cs
- ToolStripHighContrastRenderer.cs
- SerTrace.cs
- RefreshInfo.cs
- Solver.cs
- UrlMappingsModule.cs
- HtmlInputRadioButton.cs
- X509Utils.cs
- StringSource.cs
- RegexTree.cs
- RelationshipWrapper.cs
- StrokeNode.cs
- XslTransformFileEditor.cs
- XPathDocumentNavigator.cs
- SignatureToken.cs
- FormViewPageEventArgs.cs
- Helper.cs
- XamlToRtfWriter.cs
- EntityDataSourceView.cs
- PolicyManager.cs
- X509Utils.cs
- SQLBinary.cs
- RemotingServices.cs
- BackStopAuthenticationModule.cs
- CollectionContainer.cs
- pingexception.cs
- StatusBarDrawItemEvent.cs
- LayoutTableCell.cs
- SimpleRecyclingCache.cs
- CursorInteropHelper.cs
- KeyConstraint.cs
- Aes.cs
- ScriptResourceAttribute.cs
- VirtualizingStackPanel.cs
- AuthenticationModulesSection.cs
- ServiceAppDomainAssociationProvider.cs
- CanExpandCollapseAllConverter.cs
- WindowsTab.cs
- shaperfactoryquerycacheentry.cs
- NavigationProperty.cs
- Math.cs
- StylusPlugInCollection.cs
- TextSelectionProcessor.cs
- WebPartZoneCollection.cs
- SystemInfo.cs
- PrintEvent.cs
- PropertyCondition.cs
- XPathBinder.cs
- EntityKeyElement.cs
- GorillaCodec.cs
- DataPager.cs
- CodeIdentifier.cs
- WorkflowTraceTransfer.cs
- ServiceModelSectionGroup.cs
- WebPartMovingEventArgs.cs
- oledbmetadatacollectionnames.cs
- EventLogEntryCollection.cs
- ProfilePropertySettings.cs
- AccessDataSourceView.cs
- DataException.cs
- ColorMatrix.cs