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
- PlatformNotSupportedException.cs
- MemberMemberBinding.cs
- PersonalizationStateQuery.cs
- GetLedgerEntryForRecipientRequest.cs
- Site.cs
- ReadOnlyDataSourceView.cs
- DataGridViewRowHeaderCell.cs
- UserCancellationException.cs
- UnknownBitmapDecoder.cs
- OraclePermission.cs
- ObjectSet.cs
- EntityProviderServices.cs
- WebControlParameterProxy.cs
- XmlAttributeOverrides.cs
- InputProviderSite.cs
- SerializationObjectManager.cs
- TextElementCollection.cs
- TTSEvent.cs
- ContactManager.cs
- QueryTaskGroupState.cs
- ColorMap.cs
- PeerCollaborationPermission.cs
- DataServiceRequestException.cs
- AspCompat.cs
- WebServiceErrorEvent.cs
- Root.cs
- DummyDataSource.cs
- UpdateDelegates.Generated.cs
- PropertyValue.cs
- IteratorFilter.cs
- BooleanProjectedSlot.cs
- ThreadTrace.cs
- WorkflowIdleElement.cs
- SettingsPropertyIsReadOnlyException.cs
- ExpressionBindingsDialog.cs
- Transactions.cs
- ClientSideQueueItem.cs
- DataContractSerializer.cs
- PropertyEntry.cs
- Cursor.cs
- ISSmlParser.cs
- TableParagraph.cs
- IndexExpression.cs
- DataPagerField.cs
- XmlNotation.cs
- BatchServiceHost.cs
- InheritablePropertyChangeInfo.cs
- ProjectedSlot.cs
- Int64.cs
- ButtonBaseAdapter.cs
- StylusEventArgs.cs
- WinFormsComponentEditor.cs
- Compiler.cs
- WinInetCache.cs
- EntityContainerAssociationSet.cs
- PerformanceCounterPermissionAttribute.cs
- SchemaNamespaceManager.cs
- PixelFormats.cs
- UiaCoreProviderApi.cs
- WindowsSolidBrush.cs
- DataRecordInternal.cs
- ObjectKeyFrameCollection.cs
- DataGridColumnFloatingHeader.cs
- IsolationInterop.cs
- Handle.cs
- SymmetricKeyWrap.cs
- DESCryptoServiceProvider.cs
- FormatSettings.cs
- HMACSHA256.cs
- HttpConfigurationContext.cs
- MarkupProperty.cs
- CustomError.cs
- JoinElimination.cs
- LinqDataSourceSelectEventArgs.cs
- TableSectionStyle.cs
- DecoderExceptionFallback.cs
- ObfuscateAssemblyAttribute.cs
- SqlNotificationRequest.cs
- MailBnfHelper.cs
- UnconditionalPolicy.cs
- InsufficientMemoryException.cs
- RectAnimationBase.cs
- EncryptedData.cs
- XmlArrayItemAttributes.cs
- DefaultWorkflowLoaderService.cs
- ClientSideQueueItem.cs
- ListSurrogate.cs
- unitconverter.cs
- ExpressionList.cs
- DiagnosticsElement.cs
- NativeMethods.cs
- X509DefaultServiceCertificateElement.cs
- TextAnchor.cs
- DataControlFieldTypeEditor.cs
- DataBoundControlActionList.cs
- AppearanceEditorPart.cs
- ValidatedControlConverter.cs
- Processor.cs
- BufferedStream.cs
- AnnotationResourceCollection.cs