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
- CollectionViewGroup.cs
- RegexTree.cs
- XmlSchemaAnyAttribute.cs
- EntityDataSourceChangingEventArgs.cs
- ObjectListCommandCollection.cs
- DataListGeneralPage.cs
- DataGridTextBox.cs
- DocumentGrid.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- XComponentModel.cs
- SelectingProviderEventArgs.cs
- EarlyBoundInfo.cs
- DataObjectAttribute.cs
- HttpProfileGroupBase.cs
- TableAutomationPeer.cs
- MessageProtectionOrder.cs
- WSFederationHttpBindingCollectionElement.cs
- WorkflowMarkupSerializationProvider.cs
- SoapIncludeAttribute.cs
- WebResourceAttribute.cs
- httpapplicationstate.cs
- ActivityCodeDomSerializationManager.cs
- DbCommandTree.cs
- WindowsTitleBar.cs
- EventPropertyMap.cs
- WindowsEditBox.cs
- TextBoxBase.cs
- MappingModelBuildProvider.cs
- ConsumerConnectionPointCollection.cs
- TableDetailsRow.cs
- GroupedContextMenuStrip.cs
- ProxyGenerationError.cs
- CompilerGlobalScopeAttribute.cs
- XmlElementList.cs
- Drawing.cs
- LayoutInformation.cs
- ObjectItemConventionAssemblyLoader.cs
- Scene3D.cs
- InvokeHandlers.cs
- WebHttpBindingCollectionElement.cs
- SafeFileMapViewHandle.cs
- PropertyMap.cs
- RequestBringIntoViewEventArgs.cs
- ServiceNameElement.cs
- NativeMethods.cs
- Sql8ConformanceChecker.cs
- XmlProcessingInstruction.cs
- EventItfInfo.cs
- ListBindableAttribute.cs
- DataBinding.cs
- AnalyzedTree.cs
- TreeBuilder.cs
- ContentPosition.cs
- SafeBitVector32.cs
- versioninfo.cs
- SchemaNamespaceManager.cs
- Tokenizer.cs
- HtmlTernaryTree.cs
- DivideByZeroException.cs
- TabControl.cs
- RequestQueue.cs
- EndpointAddress10.cs
- InlineObject.cs
- WebMethodAttribute.cs
- HtmlTernaryTree.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- HttpModule.cs
- TopClause.cs
- ScriptComponentDescriptor.cs
- CommandHelpers.cs
- EditorZone.cs
- UIPropertyMetadata.cs
- ElapsedEventArgs.cs
- OLEDB_Enum.cs
- TrackingLocationCollection.cs
- PointHitTestParameters.cs
- GridViewColumn.cs
- TableLayoutCellPaintEventArgs.cs
- DES.cs
- XpsS0ValidatingLoader.cs
- DBCommandBuilder.cs
- QuadraticBezierSegment.cs
- SymLanguageType.cs
- Contracts.cs
- X509PeerCertificateElement.cs
- RegexGroup.cs
- CellParagraph.cs
- HtmlUtf8RawTextWriter.cs
- CompiledELinqQueryState.cs
- CachedResourceDictionaryExtension.cs
- LinearKeyFrames.cs
- MimePart.cs
- CheckBoxPopupAdapter.cs
- SoapSchemaMember.cs
- AppDomainAttributes.cs
- EditingCommands.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- MethodCallExpression.cs
- RijndaelManagedTransform.cs
- MetadataArtifactLoaderComposite.cs