Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / Microsoft / SqlServer / Server / SqlTriggerContext.cs / 1305376 / SqlTriggerContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //daltodov //----------------------------------------------------------------------------- namespace Microsoft.SqlServer.Server { using System.Data.Common; using System.Data.SqlClient; using System.Data.SqlTypes; using System.Diagnostics; public sealed class SqlTriggerContext { TriggerAction _triggerAction; bool[] _columnsUpdated; SqlXml _eventInstanceData; internal SqlTriggerContext(TriggerAction triggerAction, bool[] columnsUpdated, SqlXml eventInstanceData) { _triggerAction = triggerAction; _columnsUpdated = columnsUpdated; _eventInstanceData = eventInstanceData; } public int ColumnCount { get { int result = 0; if (null != _columnsUpdated) { result = _columnsUpdated.Length; } return result; } } public SqlXml EventData { get { return _eventInstanceData; } } public TriggerAction TriggerAction { get { return _triggerAction; } } public bool IsUpdatedColumn(int columnOrdinal) { if (null != _columnsUpdated) { return _columnsUpdated[columnOrdinal]; // will throw IndexOutOfRangeException if it's out of range... } throw ADP.IndexOutOfRange(columnOrdinal); // if there aren't any columns, that means IndexOutOfRange too... } } } // 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
- ReverseComparer.cs
- LabelDesigner.cs
- WebPartManagerInternals.cs
- AnnouncementClient.cs
- ImportCatalogPart.cs
- DragStartedEventArgs.cs
- AlphabetConverter.cs
- UserControlAutomationPeer.cs
- XmlTextReader.cs
- CompiledELinqQueryState.cs
- GiveFeedbackEvent.cs
- PersonalizableTypeEntry.cs
- prefixendpointaddressmessagefiltertable.cs
- BoundColumn.cs
- WebPartVerb.cs
- PackUriHelper.cs
- NativeRecognizer.cs
- WindowsFormsSectionHandler.cs
- WebPartVerbsEventArgs.cs
- ParserStreamGeometryContext.cs
- DateRangeEvent.cs
- NamespaceInfo.cs
- ThicknessKeyFrameCollection.cs
- XmlSchemaExporter.cs
- WeakReference.cs
- SqlDataSourceCustomCommandPanel.cs
- EncoderParameter.cs
- StorageSetMapping.cs
- CommandID.cs
- SmtpLoginAuthenticationModule.cs
- VectorCollectionConverter.cs
- TextElementCollection.cs
- Currency.cs
- GraphicsContainer.cs
- DocumentNUp.cs
- AccessedThroughPropertyAttribute.cs
- BooleanSwitch.cs
- DesignerAutoFormatCollection.cs
- DataBoundControlHelper.cs
- Point4D.cs
- DocumentViewerAutomationPeer.cs
- SqlProviderManifest.cs
- ConsumerConnectionPoint.cs
- ProxyGenerator.cs
- MULTI_QI.cs
- AnimationClockResource.cs
- DataObjectMethodAttribute.cs
- ThreadExceptionDialog.cs
- DbCommandDefinition.cs
- SafeProcessHandle.cs
- ValueChangedEventManager.cs
- BookmarkEventArgs.cs
- RuleSet.cs
- Normalization.cs
- DataGridHeaderBorder.cs
- PropertyMapper.cs
- ListSourceHelper.cs
- PageClientProxyGenerator.cs
- StreamGeometryContext.cs
- HtmlInputFile.cs
- PrintControllerWithStatusDialog.cs
- PatternMatcher.cs
- VersionedStreamOwner.cs
- HeaderUtility.cs
- WebZone.cs
- EdmScalarPropertyAttribute.cs
- CodeTypeMemberCollection.cs
- SQlBooleanStorage.cs
- TextBox.cs
- Rijndael.cs
- PkcsUtils.cs
- AsyncContentLoadedEventArgs.cs
- EdmSchemaError.cs
- OleDbTransaction.cs
- Point3DAnimation.cs
- OleDbSchemaGuid.cs
- ConfigurationSectionHelper.cs
- InputScope.cs
- ExceptionRoutedEventArgs.cs
- ScrollItemPattern.cs
- WriteTimeStream.cs
- ComboBox.cs
- Validator.cs
- UnionCqlBlock.cs
- SettingsProperty.cs
- TableLayoutColumnStyleCollection.cs
- ReferencedType.cs
- MultiAsyncResult.cs
- GC.cs
- LogicalTreeHelper.cs
- FixedSOMImage.cs
- ReversePositionQuery.cs
- HttpListenerResponse.cs
- SoapMessage.cs
- BinaryFormatterWriter.cs
- storepermissionattribute.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DataServiceContext.cs
- XPathQueryGenerator.cs
- WindowsStartMenu.cs