Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / LinqDataSourceInsertEventArgs.cs / 1 / 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
- MediaCommands.cs
- COM2ExtendedBrowsingHandler.cs
- Behavior.cs
- ProbeMatchesApril2005.cs
- AttachedAnnotation.cs
- DocumentViewerBase.cs
- DefaultClaimSet.cs
- LambdaCompiler.Generated.cs
- SoapEnumAttribute.cs
- ChineseLunisolarCalendar.cs
- CellNormalizer.cs
- HttpResponseBase.cs
- ImageButton.cs
- QueryContext.cs
- ConfigXmlDocument.cs
- BookmarkList.cs
- TypeUtil.cs
- ConsoleKeyInfo.cs
- ToolboxComponentsCreatingEventArgs.cs
- StylusDownEventArgs.cs
- RegexCharClass.cs
- CollectionViewProxy.cs
- ServerIdentity.cs
- ValidationErrorCollection.cs
- DoubleKeyFrameCollection.cs
- M3DUtil.cs
- SQLByteStorage.cs
- ComponentRenameEvent.cs
- LinkConverter.cs
- DocumentSignatureManager.cs
- ControlParser.cs
- EncoderBestFitFallback.cs
- XPathScanner.cs
- InkCollectionBehavior.cs
- ConfigurationPermission.cs
- CompositeCollection.cs
- Baml2006KnownTypes.cs
- Timeline.cs
- WebReferencesBuildProvider.cs
- HuffCodec.cs
- TemplateBaseAction.cs
- HostExecutionContextManager.cs
- PartialTrustVisibleAssembly.cs
- HWStack.cs
- DataGridViewCellPaintingEventArgs.cs
- StringPropertyBuilder.cs
- StateBag.cs
- Point4D.cs
- DefaultProxySection.cs
- XsdBuilder.cs
- AuthenticationModuleElement.cs
- MarkupExtensionReturnTypeAttribute.cs
- Interlocked.cs
- ImageAutomationPeer.cs
- DataGridViewUtilities.cs
- AuthenticatedStream.cs
- BitmapPalettes.cs
- CalendarKeyboardHelper.cs
- DeclaredTypeElementCollection.cs
- FixedSOMTableCell.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- SiteMapDataSourceDesigner.cs
- InstallerTypeAttribute.cs
- DisplayInformation.cs
- DataGridRelationshipRow.cs
- PageStatePersister.cs
- ReferenceEqualityComparer.cs
- Main.cs
- CompilationRelaxations.cs
- ExpressionBuilderContext.cs
- ProfileModule.cs
- DataTableMappingCollection.cs
- SystemTcpConnection.cs
- XhtmlTextWriter.cs
- ValidationContext.cs
- BuildProvidersCompiler.cs
- FindCriteria.cs
- XhtmlTextWriter.cs
- MetadataItem_Static.cs
- DiffuseMaterial.cs
- NopReturnReader.cs
- ToolStripComboBox.cs
- MailMessage.cs
- RuleSettings.cs
- MaskDescriptor.cs
- HandledEventArgs.cs
- CodeIterationStatement.cs
- XmlDomTextWriter.cs
- AsyncResult.cs
- Renderer.cs
- DataStorage.cs
- FlowDocumentScrollViewer.cs
- BindingBase.cs
- TriState.cs
- BindingManagerDataErrorEventArgs.cs
- TranslateTransform.cs
- DataControlCommands.cs
- OperationInvokerTrace.cs
- BezierSegment.cs
- XmlSchemaException.cs