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
- RegexWorker.cs
- ColorContext.cs
- ProcessRequestArgs.cs
- XsltException.cs
- RegistrationServices.cs
- XmlSchemaAttribute.cs
- HttpModulesSection.cs
- ISO2022Encoding.cs
- HttpHostedTransportConfiguration.cs
- Zone.cs
- XmlAnyAttributeAttribute.cs
- BypassElement.cs
- FontStyle.cs
- InvalidPropValue.cs
- HttpRequestCacheValidator.cs
- TrustManagerMoreInformation.cs
- SecurityProtocolCorrelationState.cs
- Border.cs
- InfoCardRequestException.cs
- PeerName.cs
- SqlNodeAnnotations.cs
- BindStream.cs
- HttpResponseHeader.cs
- SqlClientFactory.cs
- path.cs
- Odbc32.cs
- TaiwanCalendar.cs
- XmlSchemaComplexContentRestriction.cs
- MSAANativeProvider.cs
- __Filters.cs
- ExtensionSimplifierMarkupObject.cs
- ExtensionQuery.cs
- ApplicationProxyInternal.cs
- JsonMessageEncoderFactory.cs
- LambdaExpression.cs
- XmlEventCache.cs
- ComponentChangingEvent.cs
- SqlCacheDependency.cs
- CardSpaceException.cs
- ScaleTransform3D.cs
- _AutoWebProxyScriptHelper.cs
- BitmapEffectInput.cs
- TreeNodeConverter.cs
- ReflectionPermission.cs
- CodeDomComponentSerializationService.cs
- TimelineClockCollection.cs
- IBuiltInEvidence.cs
- ScrollChrome.cs
- SystemResources.cs
- ErrorFormatter.cs
- AssociationEndMember.cs
- HashCodeCombiner.cs
- ProfileManager.cs
- LoginUtil.cs
- SqlDataSourceEnumerator.cs
- BitmapData.cs
- transactioncontext.cs
- AlignmentXValidation.cs
- ProfileSettingsCollection.cs
- SystemUnicastIPAddressInformation.cs
- CommandValueSerializer.cs
- WindowInteropHelper.cs
- SchemaImporterExtension.cs
- StylusPointProperty.cs
- CallbackValidator.cs
- CheckBoxDesigner.cs
- DataGridViewRowsRemovedEventArgs.cs
- ClassHandlersStore.cs
- SpeakCompletedEventArgs.cs
- ContextMenu.cs
- QilLiteral.cs
- DesignerLoader.cs
- FlowDocumentFormatter.cs
- FullTextState.cs
- SerializationObjectManager.cs
- UshortList2.cs
- Transform3D.cs
- FunctionUpdateCommand.cs
- ContentPresenter.cs
- TranslateTransform3D.cs
- TableHeaderCell.cs
- BatchParser.cs
- SpeakInfo.cs
- BufferBuilder.cs
- _PooledStream.cs
- DataControlPagerLinkButton.cs
- DataControlField.cs
- ProfilePropertySettingsCollection.cs
- XappLauncher.cs
- ItemMap.cs
- TargetException.cs
- MessageContractImporter.cs
- SQLSingle.cs
- LongValidatorAttribute.cs
- SystemFonts.cs
- ListControl.cs
- DateTimeUtil.cs
- DataDesignUtil.cs
- HtmlInputImage.cs
- TableStyle.cs