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
- PageAdapter.cs
- ArraySubsetEnumerator.cs
- SmtpClient.cs
- ClockController.cs
- TimeIntervalCollection.cs
- Italic.cs
- SqlVisitor.cs
- ClipboardData.cs
- SqlDataSourceEnumerator.cs
- VerticalAlignConverter.cs
- QueryNode.cs
- Pen.cs
- EditingCoordinator.cs
- SizeChangedInfo.cs
- QuotedPrintableStream.cs
- SamlAuthorizationDecisionClaimResource.cs
- CodeCommentStatement.cs
- LocatorBase.cs
- PrimitiveXmlSerializers.cs
- SQLMoney.cs
- FrameworkElementAutomationPeer.cs
- RuleCache.cs
- FixedPage.cs
- LOSFormatter.cs
- LOSFormatter.cs
- AttributeQuery.cs
- HierarchicalDataSourceControl.cs
- Positioning.cs
- URL.cs
- Quaternion.cs
- Events.cs
- VisualTreeUtils.cs
- PropertyGeneratedEventArgs.cs
- Geometry.cs
- WindowsScrollBarBits.cs
- COSERVERINFO.cs
- GridViewUpdatedEventArgs.cs
- SurrogateEncoder.cs
- RoutedEventHandlerInfo.cs
- ResourceReader.cs
- DrawingBrush.cs
- HttpStreamMessageEncoderFactory.cs
- SqlDelegatedTransaction.cs
- MatrixIndependentAnimationStorage.cs
- LockedHandleGlyph.cs
- SessionEndingEventArgs.cs
- HtmlGenericControl.cs
- PrintingPermission.cs
- StreamUpdate.cs
- UserControl.cs
- MultipartContentParser.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DetailsViewPagerRow.cs
- MaskInputRejectedEventArgs.cs
- EventLogTraceListener.cs
- Debug.cs
- EncoderBestFitFallback.cs
- CmsInterop.cs
- AmbientLight.cs
- RadioButtonList.cs
- ExpressionBinding.cs
- RegexParser.cs
- SqlConnectionPoolGroupProviderInfo.cs
- XmlWrappingWriter.cs
- RowSpanVector.cs
- XmlComplianceUtil.cs
- StyleCollection.cs
- GridItemPatternIdentifiers.cs
- RawStylusInputCustomDataList.cs
- XmlImplementation.cs
- AnimationClockResource.cs
- RsaKeyIdentifierClause.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- TextBlock.cs
- BooleanFacetDescriptionElement.cs
- Annotation.cs
- DES.cs
- WS2007HttpBindingElement.cs
- TcpWorkerProcess.cs
- ConfigurationStrings.cs
- WebPartsPersonalization.cs
- TouchPoint.cs
- PrintingPermission.cs
- base64Transforms.cs
- ForEach.cs
- PropertyToken.cs
- HttpServerVarsCollection.cs
- FormsAuthenticationEventArgs.cs
- MultipleViewPattern.cs
- PropertyTabChangedEvent.cs
- CmsInterop.cs
- ReleaseInstanceMode.cs
- ErrorView.xaml.cs
- ItemCheckedEvent.cs
- Compiler.cs
- DataGridViewComboBoxColumnDesigner.cs
- AttachedAnnotationChangedEventArgs.cs
- TemplateBindingExpressionConverter.cs
- FontStretchConverter.cs
- DllNotFoundException.cs