Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //[....] //[....] //[....] //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DetailsViewRow.cs
- TextBreakpoint.cs
- DataControlButton.cs
- StringInfo.cs
- FixedPage.cs
- ConstantSlot.cs
- DriveNotFoundException.cs
- ReversePositionQuery.cs
- Transform3DGroup.cs
- BasicExpandProvider.cs
- CursorConverter.cs
- GridItemPatternIdentifiers.cs
- StreamGeometry.cs
- MonthChangedEventArgs.cs
- ViewStateException.cs
- HebrewCalendar.cs
- DesignBindingPicker.cs
- XhtmlBasicLabelAdapter.cs
- VolatileEnlistmentMultiplexing.cs
- WebSysDescriptionAttribute.cs
- COM2ExtendedTypeConverter.cs
- CodeIdentifier.cs
- Cursor.cs
- FixedSOMPage.cs
- ResourcesGenerator.cs
- ServiceManager.cs
- EventProxy.cs
- ListViewDeletedEventArgs.cs
- Vector3dCollection.cs
- XmlnsCache.cs
- HttpGetProtocolImporter.cs
- SqlGenericUtil.cs
- DataSourceSelectArguments.cs
- ButtonField.cs
- HttpStaticObjectsCollectionWrapper.cs
- Transform3D.cs
- SystemParameters.cs
- Error.cs
- BuildProviderAppliesToAttribute.cs
- AccessControlList.cs
- SynchronizedDispatch.cs
- DoubleLinkListEnumerator.cs
- InterleavedZipPartStream.cs
- PieceNameHelper.cs
- FunctionImportElement.cs
- RunWorkerCompletedEventArgs.cs
- BitmapEffectDrawingContent.cs
- printdlgexmarshaler.cs
- CodeTypeReferenceExpression.cs
- MethodImplAttribute.cs
- ImmComposition.cs
- ClientUrlResolverWrapper.cs
- SelectionPatternIdentifiers.cs
- WebPartDesigner.cs
- OleDbMetaDataFactory.cs
- ExpressionBuilder.cs
- TextSelectionProcessor.cs
- GatewayDefinition.cs
- XmlCompatibilityReader.cs
- AutomationEventArgs.cs
- ConsoleTraceListener.cs
- Lazy.cs
- PenThreadWorker.cs
- EngineSiteSapi.cs
- ThemeDirectoryCompiler.cs
- ObjectStateManager.cs
- PageAdapter.cs
- TypeInformation.cs
- TextEditorDragDrop.cs
- FrameworkRichTextComposition.cs
- XmlSignatureManifest.cs
- SelectionItemPattern.cs
- PerspectiveCamera.cs
- InfoCardBinaryReader.cs
- EncryptedKeyIdentifierClause.cs
- CacheMemory.cs
- ZipIORawDataFileBlock.cs
- InfoCardKeyedHashAlgorithm.cs
- PopupControlService.cs
- OracleConnectionString.cs
- SQLRoleProvider.cs
- XmlSerializerNamespaces.cs
- CompilerErrorCollection.cs
- DeviceContexts.cs
- Point3DConverter.cs
- Triangle.cs
- SrgsSubset.cs
- EventLogException.cs
- PointHitTestResult.cs
- FormsAuthenticationEventArgs.cs
- FixedSOMFixedBlock.cs
- EngineSiteSapi.cs
- AdapterUtil.cs
- DocumentScope.cs
- RuntimeComponentFilter.cs
- CodeGenerator.cs
- EntityParameterCollection.cs
- PeerResolverElement.cs
- GeometryGroup.cs
- GridViewPageEventArgs.cs