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
- EntityProviderFactory.cs
- DefaultMemberAttribute.cs
- assertwrapper.cs
- GridItemProviderWrapper.cs
- DbDataSourceEnumerator.cs
- DateTimeOffset.cs
- Parser.cs
- HierarchicalDataSourceConverter.cs
- _ConnectStream.cs
- ThemeDictionaryExtension.cs
- DataGridViewUtilities.cs
- TokenBasedSetEnumerator.cs
- ChangesetResponse.cs
- Encoder.cs
- XmlSignatureManifest.cs
- ProcessHostServerConfig.cs
- dbenumerator.cs
- XmlSchemaValidator.cs
- FileSecurity.cs
- ComplexObject.cs
- ListViewItemSelectionChangedEvent.cs
- ExpressionEditorAttribute.cs
- BaseDataBoundControl.cs
- WebPartDisplayMode.cs
- AppSettingsReader.cs
- PropertyNames.cs
- GridViewUpdatedEventArgs.cs
- Point.cs
- SR.cs
- FixedPageStructure.cs
- LayoutTableCell.cs
- DeviceContexts.cs
- OutputCacheSection.cs
- ChannelBinding.cs
- SkinBuilder.cs
- HttpCookie.cs
- ResourcesGenerator.cs
- RectValueSerializer.cs
- SelectionManager.cs
- BigInt.cs
- EnumerableRowCollection.cs
- ValidationErrorEventArgs.cs
- XmlSortKeyAccumulator.cs
- Point3DAnimationUsingKeyFrames.cs
- CodeChecksumPragma.cs
- ServicePoint.cs
- SuppressIldasmAttribute.cs
- TaskFactory.cs
- TreeViewImageGenerator.cs
- DbParameterHelper.cs
- AnimationClock.cs
- FacetChecker.cs
- SchemaSetCompiler.cs
- XmlNodeList.cs
- ActivityCodeDomSerializationManager.cs
- WriteTimeStream.cs
- DesignBindingConverter.cs
- DbException.cs
- UnsafeNativeMethods.cs
- RootNamespaceAttribute.cs
- DataSourceSelectArguments.cs
- CodeAccessSecurityEngine.cs
- AssemblyFilter.cs
- CatalogPartChrome.cs
- XPathAncestorIterator.cs
- HtmlForm.cs
- DebuggerAttributes.cs
- ClientSettings.cs
- EncoderParameters.cs
- x509utils.cs
- DependencyObjectType.cs
- PathTooLongException.cs
- BitArray.cs
- Console.cs
- OleDbInfoMessageEvent.cs
- TypeElement.cs
- TTSEngineTypes.cs
- SortDescription.cs
- SoapProtocolImporter.cs
- PersonalizationProviderHelper.cs
- httpserverutility.cs
- ValidatorCompatibilityHelper.cs
- MarkupWriter.cs
- PersonalizableAttribute.cs
- HandleCollector.cs
- ErrorView.xaml.cs
- TextPointer.cs
- RemoteX509AsymmetricSecurityKey.cs
- ProgressBarAutomationPeer.cs
- RoutedEventConverter.cs
- DesignerActionUIStateChangeEventArgs.cs
- RuntimeWrappedException.cs
- CorrelationManager.cs
- dbenumerator.cs
- Ref.cs
- SkewTransform.cs
- DataContractAttribute.cs
- CharacterBufferReference.cs
- TextContainerChangedEventArgs.cs
- DynamicAttribute.cs