Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- StringUtil.cs
- StatusBar.cs
- GridLengthConverter.cs
- ConstructorExpr.cs
- EllipticalNodeOperations.cs
- PropertyIDSet.cs
- ConfigurationException.cs
- MetadataPropertyvalue.cs
- FormViewUpdateEventArgs.cs
- Base64Encoder.cs
- ArrayItemValue.cs
- DataTableMapping.cs
- WebServiceTypeData.cs
- ApplicationBuildProvider.cs
- WebPartDeleteVerb.cs
- OleDbParameter.cs
- HtmlInputPassword.cs
- DbDataRecord.cs
- ColumnReorderedEventArgs.cs
- PropertyEmitter.cs
- XmlLanguage.cs
- CrossAppDomainChannel.cs
- BamlReader.cs
- XmlSerializerFactory.cs
- RowTypePropertyElement.cs
- RectangleConverter.cs
- UInt32Converter.cs
- ListBindingConverter.cs
- ColumnResult.cs
- RadioButtonStandardAdapter.cs
- TableRowGroup.cs
- ProbeMatchesApril2005.cs
- ConsoleTraceListener.cs
- SystemGatewayIPAddressInformation.cs
- UIElement3D.cs
- ControlBuilder.cs
- BuildProvidersCompiler.cs
- DefaultValueTypeConverter.cs
- HtmlInputHidden.cs
- RoutedEventConverter.cs
- PasswordPropertyTextAttribute.cs
- webclient.cs
- ExpressionBindingCollection.cs
- HtmlHistory.cs
- CommandPlan.cs
- Monitor.cs
- HttpResponseMessageProperty.cs
- TreeNodeCollection.cs
- HttpWebRequestElement.cs
- FormatPage.cs
- WmpBitmapEncoder.cs
- ForEachAction.cs
- CompModSwitches.cs
- FontSourceCollection.cs
- PropertyInformationCollection.cs
- RbTree.cs
- GridViewColumnHeaderAutomationPeer.cs
- RangeValidator.cs
- EmissiveMaterial.cs
- DoubleUtil.cs
- HttpDictionary.cs
- CodeTypeParameter.cs
- UnauthorizedAccessException.cs
- UnregisterInfo.cs
- TrackBar.cs
- PropertyEntry.cs
- GifBitmapDecoder.cs
- CharacterString.cs
- IgnoreFlushAndCloseStream.cs
- ExecutionPropertyManager.cs
- JoinTreeSlot.cs
- PenContext.cs
- TheQuery.cs
- UpDownEvent.cs
- DataConnectionHelper.cs
- NativeMethods.cs
- RegionData.cs
- DbProviderFactories.cs
- DWriteFactory.cs
- SignatureToken.cs
- ReadOnlyCollection.cs
- SqlDataSourceTableQuery.cs
- QilPatternFactory.cs
- SizeFConverter.cs
- ArithmeticException.cs
- GC.cs
- ClientTarget.cs
- EventBuilder.cs
- WindowsStartMenu.cs
- String.cs
- AddInBase.cs
- ConstraintStruct.cs
- SqlCachedBuffer.cs
- ChangePassword.cs
- ManagedIStream.cs
- CodeTypeParameterCollection.cs
- RequestSecurityTokenResponseCollection.cs
- RegexCompilationInfo.cs
- SiteMapNodeItemEventArgs.cs
- AsyncPostBackTrigger.cs