Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- HttpSysSettings.cs
- EventMap.cs
- ActionFrame.cs
- WebPartEditorCancelVerb.cs
- ToolStripItemClickedEventArgs.cs
- sqlmetadatafactory.cs
- DateTimeFormatInfoScanner.cs
- SamlDelegatingWriter.cs
- BinaryHeap.cs
- SafeNativeMethods.cs
- ReflectionServiceProvider.cs
- FileClassifier.cs
- CodeMemberEvent.cs
- SoapRpcMethodAttribute.cs
- ToolStripHighContrastRenderer.cs
- ScrollPattern.cs
- GraphicsContext.cs
- Composition.cs
- CodeBinaryOperatorExpression.cs
- DbDataRecord.cs
- WebPartCatalogAddVerb.cs
- ConnectionInterfaceCollection.cs
- securestring.cs
- PagePropertiesChangingEventArgs.cs
- HTMLTextWriter.cs
- ForeignKeyConstraint.cs
- ClientTargetCollection.cs
- XhtmlBasicImageAdapter.cs
- uribuilder.cs
- SlipBehavior.cs
- TraceHandlerErrorFormatter.cs
- Binding.cs
- PersonalizationStateQuery.cs
- OracleParameterBinding.cs
- DrawingImage.cs
- ValidatorCollection.cs
- ProxyRpc.cs
- TypeBrowserDialog.cs
- FacetEnabledSchemaElement.cs
- InnerItemCollectionView.cs
- PEFileEvidenceFactory.cs
- MissingSatelliteAssemblyException.cs
- DirectionalLight.cs
- PageParserFilter.cs
- TimeBoundedCache.cs
- PopupEventArgs.cs
- TextTreeTextNode.cs
- DataGridViewComboBoxColumn.cs
- HTMLTagNameToTypeMapper.cs
- ItemMap.cs
- FixedDocument.cs
- WrappedReader.cs
- XmlSchemaAppInfo.cs
- HighContrastHelper.cs
- UnitySerializationHolder.cs
- PropertyToken.cs
- DataGridViewButtonCell.cs
- FontUnit.cs
- BlurBitmapEffect.cs
- Model3D.cs
- CallSiteOps.cs
- Propagator.cs
- BamlLocalizationDictionary.cs
- BamlRecordHelper.cs
- PrintPreviewControl.cs
- PageFunction.cs
- Run.cs
- TimeoutValidationAttribute.cs
- IsolatedStoragePermission.cs
- Version.cs
- DrawingContextWalker.cs
- LineGeometry.cs
- ListDictionaryInternal.cs
- EpmContentSerializer.cs
- MessageTraceRecord.cs
- HtmlHead.cs
- CompletionBookmark.cs
- ImmutableObjectAttribute.cs
- X509Certificate2.cs
- DecoderFallback.cs
- WsatAdminException.cs
- XmlSchemaExternal.cs
- SqlDataSourceFilteringEventArgs.cs
- TemplatedMailWebEventProvider.cs
- StateMachine.cs
- TextOnlyOutput.cs
- CryptoConfig.cs
- ToolStripContainer.cs
- CngProperty.cs
- EventLogPermissionAttribute.cs
- MethodBuilder.cs
- UserNamePasswordClientCredential.cs
- HijriCalendar.cs
- DataSourceSelectArguments.cs
- oledbconnectionstring.cs
- UserControlDocumentDesigner.cs
- CollectionContainer.cs
- BuildProvider.cs
- PrivacyNoticeElement.cs
- BlurBitmapEffect.cs