Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- WebResponse.cs
- HtmlTableCell.cs
- DurableInstanceProvider.cs
- SqlDependencyListener.cs
- GeneralTransform3DGroup.cs
- StreamResourceInfo.cs
- DataGridViewRowPrePaintEventArgs.cs
- StringStorage.cs
- LogicalExpressionTypeConverter.cs
- DataPagerCommandEventArgs.cs
- StringExpressionSet.cs
- UnauthorizedAccessException.cs
- SupportingTokenDuplexChannel.cs
- UnsafeNativeMethods.cs
- IApplicationTrustManager.cs
- BlurBitmapEffect.cs
- HtmlElementErrorEventArgs.cs
- AnalyzedTree.cs
- AssociativeAggregationOperator.cs
- CommandLineParser.cs
- RoleExceptions.cs
- AnimationClockResource.cs
- ToolboxItem.cs
- Message.cs
- AccessDataSourceView.cs
- AnyReturnReader.cs
- CellTreeNodeVisitors.cs
- CutCopyPasteHelper.cs
- ControlBuilderAttribute.cs
- ExpressionVisitor.cs
- Model3DCollection.cs
- XmlProcessingInstruction.cs
- TextLineBreak.cs
- MachineKeyValidationConverter.cs
- SubstitutionList.cs
- DocumentPageViewAutomationPeer.cs
- MessageRpc.cs
- DbQueryCommandTree.cs
- DataGridViewColumn.cs
- TreeNodeStyleCollectionEditor.cs
- Int16Converter.cs
- BufferedWebEventProvider.cs
- _SpnDictionary.cs
- WebBrowserBase.cs
- ServiceHostingEnvironment.cs
- CfgArc.cs
- MultiPropertyDescriptorGridEntry.cs
- ReliableChannelListener.cs
- XmlAttributeOverrides.cs
- ToolStripStatusLabel.cs
- SecurityDocument.cs
- _ContextAwareResult.cs
- MsdtcWrapper.cs
- WebPart.cs
- HtmlEncodedRawTextWriter.cs
- TokenBasedSetEnumerator.cs
- FormsIdentity.cs
- SoapSchemaExporter.cs
- PrintingPermissionAttribute.cs
- ParentUndoUnit.cs
- RuleSetReference.cs
- SecurityException.cs
- ReflectPropertyDescriptor.cs
- VectorConverter.cs
- AssemblyBuilder.cs
- XmlILAnnotation.cs
- SQLDoubleStorage.cs
- InvalidPropValue.cs
- XMLSyntaxException.cs
- ReferentialConstraint.cs
- CodeGen.cs
- CallbackHandler.cs
- Sql8ExpressionRewriter.cs
- BitmapMetadataEnumerator.cs
- SortQueryOperator.cs
- ViewManagerAttribute.cs
- MSAAWinEventWrap.cs
- HandleTable.cs
- XmlnsDictionary.cs
- SchemaTableOptionalColumn.cs
- ControlCachePolicy.cs
- HtmlTableCellCollection.cs
- TextBounds.cs
- AlternateViewCollection.cs
- DetailsViewDeletedEventArgs.cs
- PresentationTraceSources.cs
- CrossContextChannel.cs
- SelectionGlyphBase.cs
- DropDownButton.cs
- TextTreeTextNode.cs
- hresults.cs
- AxWrapperGen.cs
- RoleGroupCollection.cs
- RelatedPropertyManager.cs
- SourceFileBuildProvider.cs
- DesignerProperties.cs
- ArrayConverter.cs
- FileLevelControlBuilderAttribute.cs
- AuthorizationRule.cs
- PixelFormats.cs