Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / LinqDataSourceUpdateEventArgs.cs / 1 / LinqDataSourceUpdateEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Security.Permissions;
[AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class LinqDataSourceUpdateEventArgs : CancelEventArgs {
private LinqDataSourceValidationException _exception;
private bool _exceptionHandled;
private object _originalObject;
private object _newObject;
[SuppressMessage("Microsoft.Naming", "CA1720:AvoidTypeNamesInParameters",
Justification = "Names are consistent with those used in the ObjectDataSource classes")]
public LinqDataSourceUpdateEventArgs(object originalObject, object newObject) {
_originalObject = originalObject;
_newObject = newObject;
}
public LinqDataSourceUpdateEventArgs(LinqDataSourceValidationException exception) {
_exception = exception;
}
public LinqDataSourceValidationException Exception {
get {
return _exception;
}
}
public bool ExceptionHandled {
get {
return _exceptionHandled;
}
set {
_exceptionHandled = value;
}
}
public object OriginalObject {
get {
return _originalObject;
}
}
public object NewObject {
get {
return _newObject;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EllipseGeometry.cs
- Geometry3D.cs
- dbenumerator.cs
- XmlHierarchicalDataSourceView.cs
- Hex.cs
- GorillaCodec.cs
- ObjectToken.cs
- LinqDataSourceView.cs
- LocatorPart.cs
- CompressionTransform.cs
- Rect3D.cs
- CLSCompliantAttribute.cs
- precedingsibling.cs
- GZipUtils.cs
- DataGridState.cs
- ZeroOpNode.cs
- BasicHttpSecurityMode.cs
- FontFamilyValueSerializer.cs
- Delegate.cs
- Events.cs
- CodeTypeDeclarationCollection.cs
- DataRowChangeEvent.cs
- ProjectionPath.cs
- PropertyMapper.cs
- ExpressionQuoter.cs
- HostProtectionException.cs
- AnonymousIdentificationModule.cs
- ComplusEndpointConfigContainer.cs
- ReferenceService.cs
- PartManifestEntry.cs
- ResourceDictionaryCollection.cs
- InkSerializer.cs
- assemblycache.cs
- DES.cs
- ByteBufferPool.cs
- ShutDownListener.cs
- CallbackHandler.cs
- VisualProxy.cs
- XmlSchema.cs
- WrappedKeySecurityTokenParameters.cs
- QueryCacheManager.cs
- AnchoredBlock.cs
- SecurityPolicySection.cs
- ParallelTimeline.cs
- MarshalDirectiveException.cs
- RelationshipType.cs
- ServicePerformanceCounters.cs
- TraceHwndHost.cs
- StringUtil.cs
- TagPrefixAttribute.cs
- UnmanagedMemoryStream.cs
- SharedPersonalizationStateInfo.cs
- ImageSource.cs
- CapabilitiesRule.cs
- IChannel.cs
- CommonObjectSecurity.cs
- EventKeyword.cs
- CheckedPointers.cs
- ConnectionStringSettingsCollection.cs
- CategoriesDocumentFormatter.cs
- TextBoxView.cs
- Duration.cs
- HttpConfigurationSystem.cs
- EUCJPEncoding.cs
- DictionaryContent.cs
- DataControlImageButton.cs
- validationstate.cs
- RadioButtonAutomationPeer.cs
- Comparer.cs
- SourceSwitch.cs
- HierarchicalDataBoundControlAdapter.cs
- BitmapEffectDrawingContextState.cs
- HttpHandlerActionCollection.cs
- ToolStripItemTextRenderEventArgs.cs
- SqlAggregateChecker.cs
- TypeSemantics.cs
- Script.cs
- XPathAncestorQuery.cs
- DesigntimeLicenseContextSerializer.cs
- WebPageTraceListener.cs
- SimpleApplicationHost.cs
- MetroSerializationManager.cs
- TreeView.cs
- HttpChannelBindingToken.cs
- DependsOnAttribute.cs
- SecurityCriticalDataForSet.cs
- SQLRoleProvider.cs
- ViewStateException.cs
- AssociationSetMetadata.cs
- GridViewColumnHeader.cs
- SafeCryptoHandles.cs
- TimeSpanParse.cs
- PackWebRequest.cs
- XmlWriterSettings.cs
- Condition.cs
- ToolBar.cs
- GridViewCancelEditEventArgs.cs
- ZipIOExtraFieldPaddingElement.cs
- SchemaMapping.cs
- BufferedMessageWriter.cs