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
- ProtectedConfigurationProviderCollection.cs
- Effect.cs
- PagedDataSource.cs
- XmlProcessingInstruction.cs
- UntrustedRecipientException.cs
- DiagnosticStrings.cs
- WinFormsSpinner.cs
- ConnectionPoolManager.cs
- MetabaseServerConfig.cs
- Dictionary.cs
- OAVariantLib.cs
- BoundingRectTracker.cs
- DataSetFieldSchema.cs
- BridgeDataReader.cs
- RecognizerInfo.cs
- Pool.cs
- DiscoveryDocumentReference.cs
- EnvironmentPermission.cs
- ResourceExpressionBuilder.cs
- PointLightBase.cs
- ISFTagAndGuidCache.cs
- Cursor.cs
- ConfigurationElement.cs
- HtmlContainerControl.cs
- RegistryKey.cs
- ProjectionCamera.cs
- Utility.cs
- XmlSerializerOperationFormatter.cs
- Comparer.cs
- MergeFailedEvent.cs
- ScopedKnownTypes.cs
- TrackingDataItem.cs
- ThumbAutomationPeer.cs
- HttpFileCollection.cs
- XmlMapping.cs
- FeatureSupport.cs
- QualifierSet.cs
- FileUpload.cs
- UpDownEvent.cs
- TypeSystem.cs
- WebBrowserNavigatedEventHandler.cs
- OleDbConnection.cs
- AliasedExpr.cs
- RSAPKCS1SignatureFormatter.cs
- Point3DAnimationBase.cs
- SqlIdentifier.cs
- DocumentPageTextView.cs
- DesignerToolboxInfo.cs
- ComponentResourceKeyConverter.cs
- ListItemsCollectionEditor.cs
- UdpChannelFactory.cs
- CodePrimitiveExpression.cs
- GeneratedContractType.cs
- GAC.cs
- ChannelManager.cs
- OperatorExpressions.cs
- ReflectEventDescriptor.cs
- CommandDesigner.cs
- SemanticTag.cs
- Baml6Assembly.cs
- VirtualPathUtility.cs
- RenderingEventArgs.cs
- CompilationUtil.cs
- InitializerFacet.cs
- HostingEnvironmentWrapper.cs
- ControlParameter.cs
- SessionEndingEventArgs.cs
- SerialStream.cs
- HelpKeywordAttribute.cs
- CompilerInfo.cs
- QuadraticBezierSegment.cs
- Transform3DGroup.cs
- ZipIOExtraFieldZip64Element.cs
- DataKeyArray.cs
- TextBoxBase.cs
- IBuiltInEvidence.cs
- EventProvider.cs
- AndCondition.cs
- RangeContentEnumerator.cs
- TreeSet.cs
- TemplatedAdorner.cs
- BaseCollection.cs
- WeakHashtable.cs
- EnumerableRowCollection.cs
- PageDeviceFont.cs
- MdiWindowListStrip.cs
- Int32RectValueSerializer.cs
- QuotedPrintableStream.cs
- TextRunTypographyProperties.cs
- ConfigurationException.cs
- Config.cs
- DispatchOperationRuntime.cs
- Size.cs
- XmlSerializableWriter.cs
- SqlAliasesReferenced.cs
- ClientConfigurationHost.cs
- NeutralResourcesLanguageAttribute.cs
- BrowserTree.cs
- SvcMapFileLoader.cs
- VisualBasic.cs