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
- EllipseGeometry.cs
- HtmlControlDesigner.cs
- SafeEventLogReadHandle.cs
- PopupEventArgs.cs
- SourceItem.cs
- CannotUnloadAppDomainException.cs
- CodeDelegateInvokeExpression.cs
- ListSourceHelper.cs
- OleDbCommand.cs
- WindowsStreamSecurityElement.cs
- CriticalFinalizerObject.cs
- PermissionToken.cs
- GeometryDrawing.cs
- RectValueSerializer.cs
- ListBoxChrome.cs
- IndexOutOfRangeException.cs
- GatewayDefinition.cs
- SafeHandles.cs
- XmlnsPrefixAttribute.cs
- XmlDictionaryReaderQuotas.cs
- CompilerWrapper.cs
- ByteViewer.cs
- QueryGenerator.cs
- BaseResourcesBuildProvider.cs
- CapabilitiesAssignment.cs
- DataServiceResponse.cs
- HostingEnvironmentException.cs
- DynamicValidatorEventArgs.cs
- TreeNode.cs
- ProxyElement.cs
- WebBrowserDocumentCompletedEventHandler.cs
- Polyline.cs
- coordinator.cs
- HtmlControl.cs
- TemplatePagerField.cs
- _CommandStream.cs
- TraceHandlerErrorFormatter.cs
- CodeBlockBuilder.cs
- EditingCommands.cs
- MultiDataTrigger.cs
- TextEditorCharacters.cs
- QilReplaceVisitor.cs
- DesignerAdRotatorAdapter.cs
- SecureEnvironment.cs
- ClaimComparer.cs
- CodeVariableReferenceExpression.cs
- PublisherIdentityPermission.cs
- SrgsElement.cs
- StrokeNodeOperations2.cs
- KnownColorTable.cs
- FtpWebRequest.cs
- WindowsListBox.cs
- EffectiveValueEntry.cs
- BoolExpression.cs
- XmlQualifiedName.cs
- DataGridViewBand.cs
- ObjectNavigationPropertyMapping.cs
- UriSection.cs
- RemoteWebConfigurationHostStream.cs
- HtmlWindowCollection.cs
- AxisAngleRotation3D.cs
- CommandPlan.cs
- CrossSiteScriptingValidation.cs
- SecurityDescriptor.cs
- OdbcPermission.cs
- PreservationFileWriter.cs
- TagPrefixAttribute.cs
- DBNull.cs
- TcpTransportSecurityElement.cs
- RegexMatchCollection.cs
- ForwardPositionQuery.cs
- ObjectDataSource.cs
- ConfigXmlWhitespace.cs
- FormatException.cs
- StdRegProviderWrapper.cs
- ByteStream.cs
- COM2IPerPropertyBrowsingHandler.cs
- XmlCharCheckingReader.cs
- XmlArrayItemAttribute.cs
- EntityDesignerDataSourceView.cs
- BaseComponentEditor.cs
- SplashScreenNativeMethods.cs
- InternalControlCollection.cs
- ToolboxComponentsCreatedEventArgs.cs
- SecUtil.cs
- EntityKeyElement.cs
- StateRuntime.cs
- ContentControl.cs
- ToolBarButton.cs
- WS2007FederationHttpBindingElement.cs
- VirtualPathData.cs
- MessageEnumerator.cs
- Size.cs
- ContentElement.cs
- ScriptManager.cs
- WinEventWrap.cs
- sqlcontext.cs
- NamedPipeProcessProtocolHandler.cs
- ChannelSinkStacks.cs
- WindowsFormsHostAutomationPeer.cs