Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / WebControls / LinqDataSourceInsertEventArgs.cs / 1305376 / LinqDataSourceInsertEventArgs.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 LinqDataSourceInsertEventArgs : CancelEventArgs { private LinqDataSourceValidationException _exception; private bool _exceptionHandled; private object _newObject; [SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object", Justification = "Names are consistent with those used in the ObjectDataSource classes")] public LinqDataSourceInsertEventArgs(object newObject) { _newObject = newObject; } public LinqDataSourceInsertEventArgs(LinqDataSourceValidationException exception) { _exception = exception; } public LinqDataSourceValidationException Exception { get { return _exception; } } public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } 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 LinqDataSourceInsertEventArgs : CancelEventArgs { private LinqDataSourceValidationException _exception; private bool _exceptionHandled; private object _newObject; [SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "object", Justification = "Names are consistent with those used in the ObjectDataSource classes")] public LinqDataSourceInsertEventArgs(object newObject) { _newObject = newObject; } public LinqDataSourceInsertEventArgs(LinqDataSourceValidationException exception) { _exception = exception; } public LinqDataSourceValidationException Exception { get { return _exception; } } public bool ExceptionHandled { get { return _exceptionHandled; } set { _exceptionHandled = value; } } 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
- TextEncodedRawTextWriter.cs
- XmlBinaryWriter.cs
- TextSpanModifier.cs
- ThemeInfoAttribute.cs
- GroupBoxAutomationPeer.cs
- RoleManagerEventArgs.cs
- SerialPinChanges.cs
- RootProfilePropertySettingsCollection.cs
- JoinTreeNode.cs
- TextAutomationPeer.cs
- GridViewColumnHeader.cs
- Nullable.cs
- WindowsRegion.cs
- LayoutTableCell.cs
- CalendarData.cs
- CodeObject.cs
- PenThreadWorker.cs
- PersonalizationStateInfo.cs
- RuntimeEnvironment.cs
- WindowInteractionStateTracker.cs
- ReferenceSchema.cs
- VerificationAttribute.cs
- SafeWaitHandle.cs
- AudioFileOut.cs
- DefaultMemberAttribute.cs
- ItemCollection.cs
- MediaElement.cs
- ContentDesigner.cs
- FontStyles.cs
- WebBrowserNavigatingEventHandler.cs
- securitycriticaldataformultiplegetandset.cs
- TabControlCancelEvent.cs
- SQLBytes.cs
- ComplexPropertyEntry.cs
- TextTreeFixupNode.cs
- ResourcePool.cs
- AsymmetricKeyExchangeFormatter.cs
- ThrowHelper.cs
- HostingEnvironment.cs
- TextCompositionEventArgs.cs
- CuspData.cs
- ReflectEventDescriptor.cs
- DoubleStorage.cs
- ImageField.cs
- Query.cs
- BindingGraph.cs
- ResourceLoader.cs
- ResolveMatchesMessage11.cs
- XmlCharCheckingWriter.cs
- updateconfighost.cs
- base64Transforms.cs
- CookielessHelper.cs
- CustomErrorsSection.cs
- CellLabel.cs
- PersonalizableAttribute.cs
- ChannelBinding.cs
- MailMessage.cs
- TextRenderer.cs
- MetadataArtifactLoaderCompositeFile.cs
- ToolBarPanel.cs
- RequestCacheManager.cs
- ProcessRequestArgs.cs
- DataServiceKeyAttribute.cs
- ColorContext.cs
- SubclassTypeValidator.cs
- IPAddress.cs
- MetadataSerializer.cs
- GridToolTip.cs
- UnaryOperationBinder.cs
- BuildTopDownAttribute.cs
- SiteMapNode.cs
- SamlAssertionKeyIdentifierClause.cs
- XmlDictionaryWriter.cs
- CollectionChange.cs
- HeaderCollection.cs
- Shape.cs
- EntityType.cs
- DataGridViewCellCollection.cs
- CharEntityEncoderFallback.cs
- BufferedReadStream.cs
- HtmlLink.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ProcessHostConfigUtils.cs
- FileCodeGroup.cs
- AttachedAnnotationChangedEventArgs.cs
- ImageAutomationPeer.cs
- PinnedBufferMemoryStream.cs
- FormViewModeEventArgs.cs
- WebPartPersonalization.cs
- LoadedOrUnloadedOperation.cs
- Util.cs
- BaseResourcesBuildProvider.cs
- XmlSchemaValidationException.cs
- Pkcs7Signer.cs
- CodeGroup.cs
- EntityCodeGenerator.cs
- Binding.cs
- MenuCommands.cs
- SwitchCase.cs
- Classification.cs