Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Data / Microsoft / SqlServer / Server / SqlTriggerContext.cs / 1 / 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; #if WINFSInternalOnly internal #else public #endif 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. //------------------------------------------------------------------------------ //// 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; #if WINFSInternalOnly internal #else public #endif 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DashStyle.cs
- DataGridViewButtonCell.cs
- ListenerSingletonConnectionReader.cs
- ReliabilityContractAttribute.cs
- ToolStripContentPanelRenderEventArgs.cs
- SqlTriggerAttribute.cs
- SequentialUshortCollection.cs
- EmptyTextWriter.cs
- OleDbConnection.cs
- XmlSerializationReader.cs
- CannotUnloadAppDomainException.cs
- PointLightBase.cs
- HostProtectionPermission.cs
- Decimal.cs
- XmlCodeExporter.cs
- EventWaitHandle.cs
- OracleConnectionStringBuilder.cs
- SecurityTokenParametersEnumerable.cs
- OracleConnectionString.cs
- SqlTriggerAttribute.cs
- EventDriven.cs
- MessageDispatch.cs
- DocumentGridContextMenu.cs
- SynchronizationContext.cs
- DebuggerAttributes.cs
- TrayIconDesigner.cs
- TraceInternal.cs
- SHA256Managed.cs
- SupportingTokenSecurityTokenResolver.cs
- WmlPageAdapter.cs
- _TimerThread.cs
- Int64AnimationUsingKeyFrames.cs
- Attributes.cs
- LinqDataSourceInsertEventArgs.cs
- ContentAlignmentEditor.cs
- SqlNode.cs
- SizeIndependentAnimationStorage.cs
- XmlChildEnumerator.cs
- ByteConverter.cs
- HostSecurityManager.cs
- ViewSimplifier.cs
- SerialPinChanges.cs
- ProviderBase.cs
- AlignmentYValidation.cs
- HashSet.cs
- DataListItemEventArgs.cs
- RemotingService.cs
- MsmqIntegrationSecurity.cs
- HttpResponseInternalWrapper.cs
- DataObjectPastingEventArgs.cs
- SoapReflector.cs
- Convert.cs
- SafeNativeMethods.cs
- ResourceSetExpression.cs
- Color.cs
- DeploymentSectionCache.cs
- Evaluator.cs
- MetadataPropertyAttribute.cs
- AppearanceEditorPart.cs
- bidPrivateBase.cs
- PartitionResolver.cs
- _SSPISessionCache.cs
- ComponentResourceManager.cs
- PropertyKey.cs
- DataRelation.cs
- PieceNameHelper.cs
- SystemWebSectionGroup.cs
- ConsumerConnectionPointCollection.cs
- GeometryConverter.cs
- ErrorTableItemStyle.cs
- DataObjectMethodAttribute.cs
- VisualBrush.cs
- WebSysDisplayNameAttribute.cs
- ValueOfAction.cs
- ActivityInstanceReference.cs
- Brushes.cs
- DataTableTypeConverter.cs
- TransformGroup.cs
- EarlyBoundInfo.cs
- DetailsViewAutoFormat.cs
- Brush.cs
- TriggerActionCollection.cs
- WorkflowDesignerMessageFilter.cs
- XamlFrame.cs
- WebConfigurationHostFileChange.cs
- StatusBarItem.cs
- TransactionBehavior.cs
- DnsPermission.cs
- RealizationDrawingContextWalker.cs
- Util.cs
- TempFiles.cs
- QuaternionRotation3D.cs
- WebConfigurationFileMap.cs
- WindowsImpersonationContext.cs
- HttpCapabilitiesSectionHandler.cs
- IntPtr.cs
- InputLanguageCollection.cs
- ColumnMapCopier.cs
- RootBrowserWindowAutomationPeer.cs
- ObjectConverter.cs