Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / System / Data / Sql / SqlNotificationRequest.cs / 1 / SqlNotificationRequest.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data.Sql { using System; using System.Data.Common; using System.Data.SqlClient; // [System.ComponentModel.TypeConverterAttribute(typeof(System.Data.Sql.SqlNotificationRequest.SqlNotificationRequestConverter))] #if WINFSInternalOnly internal #else public #endif sealed class SqlNotificationRequest { private string _userData; private string _options; private int _timeout; public SqlNotificationRequest() : this(null, null, SqlClient.SQL.SqlDependencyTimeoutDefault) {} public SqlNotificationRequest(string userData, string options, int timeout) { UserData = userData; Timeout = timeout; Options = options; } public string Options { get { return _options; } set { if ((null != value) && (UInt16.MaxValue < value.Length)) { throw ADP.ArgumentOutOfRange(String.Empty, ADP.ParameterService); } _options = value; } } public int Timeout { get { return _timeout; } set { if (0 > value) { throw ADP.ArgumentOutOfRange(String.Empty, ADP.ParameterTimeout); } _timeout = value; } } public string UserData { get { return _userData; } set { if ((null != value) && (UInt16.MaxValue < value.Length)) { throw ADP.ArgumentOutOfRange(String.Empty, ADP.ParameterUserData); } _userData = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VisualBrush.cs
- UntrustedRecipientException.cs
- DataGridViewCellLinkedList.cs
- TraceHandler.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Point.cs
- VirtualPathUtility.cs
- ValueChangedEventManager.cs
- ScriptingProfileServiceSection.cs
- GeometryCombineModeValidation.cs
- DataGridTableCollection.cs
- CommonProperties.cs
- UnmanagedHandle.cs
- UdpDiscoveryMessageFilter.cs
- OnOperation.cs
- ObjectHandle.cs
- EntityKey.cs
- DataView.cs
- FieldAccessException.cs
- TickBar.cs
- MenuAdapter.cs
- ReachDocumentReferenceSerializer.cs
- ApplyImportsAction.cs
- XamlBuildTaskServices.cs
- CurrencyManager.cs
- PlatformCulture.cs
- TypeInitializationException.cs
- LogicalExpressionTypeConverter.cs
- ParsedAttributeCollection.cs
- ForeignConstraint.cs
- CaretElement.cs
- X509CertificateValidator.cs
- IDispatchConstantAttribute.cs
- PerfCounterSection.cs
- EventLogPermission.cs
- HttpsHostedTransportConfiguration.cs
- CardSpaceShim.cs
- StringResourceManager.cs
- UrlPropertyAttribute.cs
- WindowsEditBoxRange.cs
- Tile.cs
- NativeMethods.cs
- DocumentGridContextMenu.cs
- XmlTextEncoder.cs
- PersonalizableTypeEntry.cs
- AudioFormatConverter.cs
- CodeLabeledStatement.cs
- DbDataRecord.cs
- DesignerTransactionCloseEvent.cs
- SqlFlattener.cs
- CodeValidator.cs
- XmlQueryOutput.cs
- Operators.cs
- FixedDocumentSequencePaginator.cs
- XmlValidatingReader.cs
- RotationValidation.cs
- SqlInternalConnection.cs
- InternalConfigRoot.cs
- TableLayout.cs
- PseudoWebRequest.cs
- AdornerHitTestResult.cs
- GB18030Encoding.cs
- FormsAuthenticationTicket.cs
- HostedHttpContext.cs
- TextEvent.cs
- PartialList.cs
- IisTraceListener.cs
- FontFaceLayoutInfo.cs
- PageBreakRecord.cs
- DataBindingCollection.cs
- WebPageTraceListener.cs
- XmlExceptionHelper.cs
- ObjectDataSourceDisposingEventArgs.cs
- TextParagraphProperties.cs
- DataBindingCollectionEditor.cs
- SafeViewOfFileHandle.cs
- XsdDuration.cs
- AutomationFocusChangedEventArgs.cs
- IListConverters.cs
- CheckBoxRenderer.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- Cursor.cs
- AssemblyBuilder.cs
- XmlBinaryReaderSession.cs
- WindowsRebar.cs
- OdbcCommand.cs
- ProfileManager.cs
- IBuiltInEvidence.cs
- BorderGapMaskConverter.cs
- WindowsTokenRoleProvider.cs
- OleDbInfoMessageEvent.cs
- WCFBuildProvider.cs
- LinkDesigner.cs
- UnsafeNativeMethods.cs
- XmlBinaryWriterSession.cs
- SelectionList.cs
- HtmlInputHidden.cs
- SizeAnimationUsingKeyFrames.cs
- Graphics.cs
- NamespaceQuery.cs