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
- ManagedFilter.cs
- ZipIOFileItemStream.cs
- TableRowGroup.cs
- XamlRtfConverter.cs
- MessageLogTraceRecord.cs
- ToolboxCategoryItems.cs
- EntitySqlQueryState.cs
- SchemaImporterExtensionsSection.cs
- PreloadedPackages.cs
- ByteAnimation.cs
- AdapterDictionary.cs
- AutoGeneratedField.cs
- PropertyInfoSet.cs
- XmlAttributeHolder.cs
- ListMarkerLine.cs
- AllMembershipCondition.cs
- MessageDesigner.cs
- ValidateNames.cs
- HttpListener.cs
- XPathNodeInfoAtom.cs
- SslStream.cs
- RepeaterItemEventArgs.cs
- TemplateNameScope.cs
- InkPresenterAutomationPeer.cs
- CapabilitiesSection.cs
- BamlLocalizableResource.cs
- TableColumn.cs
- DataGridViewIntLinkedList.cs
- ExpressionLexer.cs
- ListItemViewControl.cs
- FactoryGenerator.cs
- SQLDecimalStorage.cs
- Permission.cs
- SafeSystemMetrics.cs
- XmlAttribute.cs
- DocumentViewer.cs
- DesignerProperties.cs
- TrayIconDesigner.cs
- MemberInfoSerializationHolder.cs
- Font.cs
- DataKeyCollection.cs
- Vector3DCollectionConverter.cs
- WebPartDisplayMode.cs
- StyleHelper.cs
- DocumentEventArgs.cs
- SourceInterpreter.cs
- DataColumnCollection.cs
- TableStyle.cs
- GroupByExpressionRewriter.cs
- NavigationCommands.cs
- PagePropertiesChangingEventArgs.cs
- TabControl.cs
- DbConnectionClosed.cs
- ProvidersHelper.cs
- InputReport.cs
- ProfileManager.cs
- DesignTimeDataBinding.cs
- XmlWellformedWriter.cs
- SystemUnicastIPAddressInformation.cs
- ListViewSelectEventArgs.cs
- EmptyEnumerator.cs
- Vector3D.cs
- SocketSettings.cs
- cookieexception.cs
- NullRuntimeConfig.cs
- FillBehavior.cs
- _CommandStream.cs
- ObjectTypeMapping.cs
- MenuAutoFormat.cs
- ActiveXSite.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DataSourceView.cs
- RadioButton.cs
- CustomAttributeFormatException.cs
- PropertyGeneratedEventArgs.cs
- CultureInfoConverter.cs
- NamespaceEmitter.cs
- LazyTextWriterCreator.cs
- DateTimeOffsetStorage.cs
- Size3D.cs
- Logging.cs
- RadioButtonList.cs
- Calendar.cs
- NonClientArea.cs
- FacetValues.cs
- AttributeCollection.cs
- DateTimeFormat.cs
- CreateSequence.cs
- ByeOperationAsyncResult.cs
- XhtmlBasicListAdapter.cs
- ConfigurationLocation.cs
- RuleSet.cs
- TextSelection.cs
- WebProxyScriptElement.cs
- DiagnosticTrace.cs
- SystemIPAddressInformation.cs
- StorageEntitySetMapping.cs
- ProcessProtocolHandler.cs
- ProjectionPruner.cs
- DetailsViewDeletedEventArgs.cs