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
- TreeViewItem.cs
- Region.cs
- InlineUIContainer.cs
- ActivityCodeGenerator.cs
- MailDefinitionBodyFileNameEditor.cs
- TextBoxBase.cs
- Viewport2DVisual3D.cs
- Comparer.cs
- SQLMembershipProvider.cs
- EntitySetDataBindingList.cs
- ServiceRoute.cs
- RtfToXamlReader.cs
- ObjectPersistData.cs
- AuthenticationModuleElementCollection.cs
- Border.cs
- OpCopier.cs
- WebPartZoneCollection.cs
- DataControlCommands.cs
- JournalEntryListConverter.cs
- DataGridViewColumnDesigner.cs
- RegistrySecurity.cs
- LabelTarget.cs
- ContentHostHelper.cs
- AutomationAttributeInfo.cs
- SqlBulkCopy.cs
- PackageProperties.cs
- MsmqInputChannelListenerBase.cs
- UpdateCompiler.cs
- EnumType.cs
- HighContrastHelper.cs
- PrintDialog.cs
- Object.cs
- ButtonAutomationPeer.cs
- RewritingPass.cs
- HtmlInputHidden.cs
- DSASignatureDeformatter.cs
- StateBag.cs
- TableCellCollection.cs
- HMACSHA256.cs
- HtmlInputImage.cs
- Roles.cs
- NativeMethods.cs
- EmissiveMaterial.cs
- ModuleElement.cs
- EntityDataSourceWizardForm.cs
- XmlUnspecifiedAttribute.cs
- SafeRegistryHandle.cs
- HostedBindingBehavior.cs
- DbgUtil.cs
- ConfigurationException.cs
- XsltSettings.cs
- IsolationInterop.cs
- TraceHandlerErrorFormatter.cs
- MeasureItemEvent.cs
- OutputCacheSettings.cs
- SystemUdpStatistics.cs
- FirewallWrapper.cs
- ExpressionTextBox.xaml.cs
- ResourceContainer.cs
- DefaultIfEmptyQueryOperator.cs
- BitmapDecoder.cs
- CheckBoxBaseAdapter.cs
- SpeechSeg.cs
- ScrollChrome.cs
- Reference.cs
- FacetChecker.cs
- GetKeyedHashRequest.cs
- bidPrivateBase.cs
- TreeView.cs
- ButtonFlatAdapter.cs
- MachineSettingsSection.cs
- ContextMenuStripGroupCollection.cs
- IUnknownConstantAttribute.cs
- IOException.cs
- FormCollection.cs
- MediaTimeline.cs
- UshortList2.cs
- TextSchema.cs
- ParallelTimeline.cs
- DataRecordObjectView.cs
- ResourceDictionary.cs
- DataGridAddNewRow.cs
- DispatcherOperation.cs
- InternalControlCollection.cs
- ScrollItemPatternIdentifiers.cs
- IndexedEnumerable.cs
- DynamicResourceExtensionConverter.cs
- Interop.cs
- RNGCryptoServiceProvider.cs
- EntityContainer.cs
- DurableInstanceProvider.cs
- EventLogPermissionEntryCollection.cs
- HttpResponseHeader.cs
- XmlEntityReference.cs
- HttpRuntime.cs
- EntityClassGenerator.cs
- relpropertyhelper.cs
- DependencyObjectPropertyDescriptor.cs
- OSFeature.cs
- TextRunTypographyProperties.cs