Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / LinqDataSourceInsertEventArgs.cs / 2 / LinqDataSourceInsertEventArgs.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 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. // //----------------------------------------------------------------------------- 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 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
- MetricEntry.cs
- CallbackTimeoutsElement.cs
- RawStylusActions.cs
- PropertyGridDesigner.cs
- _Events.cs
- DataGridViewTopLeftHeaderCell.cs
- ADRoleFactory.cs
- SQLMembershipProvider.cs
- AsnEncodedData.cs
- DynamicMethod.cs
- UshortList2.cs
- ActivityMarkupSerializer.cs
- SecurityKeyType.cs
- TraceListeners.cs
- SystemFonts.cs
- RolePrincipal.cs
- DiscreteKeyFrames.cs
- TimelineCollection.cs
- DelegateArgument.cs
- WebReferencesBuildProvider.cs
- ProfileInfo.cs
- SafeCryptHandles.cs
- ValidatorUtils.cs
- SecUtil.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- CallbackValidatorAttribute.cs
- ObjectDataSourceEventArgs.cs
- InvokeFunc.cs
- Formatter.cs
- AbstractSvcMapFileLoader.cs
- WriteTimeStream.cs
- FormatException.cs
- EdmError.cs
- SchemaNotation.cs
- Context.cs
- EventLog.cs
- SafeFreeMibTable.cs
- HostedHttpRequestAsyncResult.cs
- DnsPermission.cs
- PolyBezierSegment.cs
- WindowsStartMenu.cs
- FontCollection.cs
- StrongName.cs
- IBuiltInEvidence.cs
- StyleHelper.cs
- DesignRelation.cs
- Transform.cs
- CellCreator.cs
- Delegate.cs
- TitleStyle.cs
- PackageRelationshipCollection.cs
- CollectionViewGroup.cs
- ActionMessageFilterTable.cs
- BasicExpandProvider.cs
- CachedFontFamily.cs
- Int32RectConverter.cs
- SecurityDocument.cs
- MetadataItem.cs
- SafeNativeMethods.cs
- SecureConversationDriver.cs
- Type.cs
- WebPartEditorApplyVerb.cs
- GiveFeedbackEventArgs.cs
- ImageListStreamer.cs
- DataGridViewCellStyleConverter.cs
- BitmapEffectGroup.cs
- InputLanguageCollection.cs
- KeyManager.cs
- MasterPageParser.cs
- sqlmetadatafactory.cs
- Pkcs7Signer.cs
- Icon.cs
- RijndaelManagedTransform.cs
- XmlSchemaObjectCollection.cs
- StructuralObject.cs
- HostSecurityManager.cs
- PreviewKeyDownEventArgs.cs
- ScrollEventArgs.cs
- ManagementOptions.cs
- RelatedView.cs
- HttpPostedFile.cs
- Assembly.cs
- ContainerUtilities.cs
- WCFBuildProvider.cs
- PointAnimationUsingPath.cs
- HighlightComponent.cs
- OrthographicCamera.cs
- PeerToPeerException.cs
- HtmlAnchor.cs
- SqlConnectionPoolProviderInfo.cs
- MouseDevice.cs
- BindingsSection.cs
- UnsafeNativeMethodsCLR.cs
- DataRecordInternal.cs
- SqlDataSourceStatusEventArgs.cs
- DataControlFieldCollection.cs
- EntryWrittenEventArgs.cs
- ObjectParameterCollection.cs
- FontStretchConverter.cs
- MailMessage.cs