Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / WebControls / LinqDataSourceUpdateEventArgs.cs / 1305376 / LinqDataSourceUpdateEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- #if ORYX_VNEXT namespace Microsoft.Web.Data.UI.WebControls { #else namespace System.Web.UI.WebControls { #endif using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; 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. // //----------------------------------------------------------------------------- #if ORYX_VNEXT namespace Microsoft.Web.Data.UI.WebControls { #else namespace System.Web.UI.WebControls { #endif using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Attributes.cs
- ReadOnlyMetadataCollection.cs
- WebPartDisplayModeCancelEventArgs.cs
- DispatchWrapper.cs
- HttpPostedFile.cs
- FrameworkRichTextComposition.cs
- EncoderNLS.cs
- CharStorage.cs
- ScalarConstant.cs
- Serializer.cs
- WebPartUtil.cs
- TableRowGroup.cs
- PolicyImporterElementCollection.cs
- DataKeyCollection.cs
- CheckBoxField.cs
- SelectionRange.cs
- ToolStripComboBox.cs
- BatchWriter.cs
- SiteMapDataSource.cs
- DPCustomTypeDescriptor.cs
- DisplayMemberTemplateSelector.cs
- ConfigurationLocationCollection.cs
- Currency.cs
- DynamicDataManager.cs
- List.cs
- AppDomainGrammarProxy.cs
- DefaultBinder.cs
- TimeoutConverter.cs
- HistoryEventArgs.cs
- WorkflowInstanceExtensionProvider.cs
- SingleAnimationUsingKeyFrames.cs
- panel.cs
- ProviderConnectionPointCollection.cs
- DocobjHost.cs
- TraceXPathNavigator.cs
- AsymmetricAlgorithm.cs
- SessionStateItemCollection.cs
- DynamicILGenerator.cs
- ObjectAnimationUsingKeyFrames.cs
- Focus.cs
- DataGridViewDataConnection.cs
- MetadataCacheItem.cs
- SoapConverter.cs
- PowerModeChangedEventArgs.cs
- ServiceHttpModule.cs
- OperationPickerDialog.designer.cs
- X509CertificateValidationMode.cs
- EnterpriseServicesHelper.cs
- MsmqInputMessagePool.cs
- ProviderException.cs
- Highlights.cs
- ActiveXHost.cs
- AssemblyBuilder.cs
- ListenerElementsCollection.cs
- DataGridParentRows.cs
- CollectionBase.cs
- SessionEndingEventArgs.cs
- QilInvokeEarlyBound.cs
- SecurityCriticalDataForSet.cs
- DataTemplateSelector.cs
- XmlSchemaCompilationSettings.cs
- PenLineJoinValidation.cs
- SessionIDManager.cs
- TextAutomationPeer.cs
- ScrollableControl.cs
- FreezableCollection.cs
- ButtonColumn.cs
- ReferencedAssembly.cs
- RequestCacheValidator.cs
- ErrorHandlerModule.cs
- GacUtil.cs
- InOutArgumentConverter.cs
- DrawingGroup.cs
- TypedReference.cs
- DecoratedNameAttribute.cs
- ObjectComplexPropertyMapping.cs
- XmlValidatingReader.cs
- NativeMethods.cs
- ObjectMemberMapping.cs
- ApplicationInfo.cs
- FileDialogCustomPlace.cs
- LocatorPart.cs
- Error.cs
- TrustManagerMoreInformation.cs
- ResourceDisplayNameAttribute.cs
- ConstraintStruct.cs
- TransformerInfo.cs
- _ConnectOverlappedAsyncResult.cs
- AddingNewEventArgs.cs
- DelegatedStream.cs
- MultipartContentParser.cs
- ReadOnlyTernaryTree.cs
- MultiBindingExpression.cs
- AutomationPropertyInfo.cs
- DirtyTextRange.cs
- X509SecurityToken.cs
- SessionParameter.cs
- Relationship.cs
- VerificationException.cs
- ReturnType.cs