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
- SqlComparer.cs
- PatternMatchRules.cs
- ErrorProvider.cs
- TemplateControlCodeDomTreeGenerator.cs
- ReachSerializableProperties.cs
- CursorInteropHelper.cs
- ColumnBinding.cs
- ResourcesGenerator.cs
- UnescapedXmlDiagnosticData.cs
- _RequestLifetimeSetter.cs
- ExpandedWrapper.cs
- SqlLiftIndependentRowExpressions.cs
- PersonalizableAttribute.cs
- DisplayMemberTemplateSelector.cs
- OdbcTransaction.cs
- Focus.cs
- AdornerLayer.cs
- HMACSHA1.cs
- ItemCheckEvent.cs
- DocumentSchemaValidator.cs
- ClockController.cs
- NonSerializedAttribute.cs
- DbLambda.cs
- HttpChannelBindingToken.cs
- ButtonBase.cs
- WebPartsPersonalizationAuthorization.cs
- HtmlLink.cs
- ThrowHelper.cs
- XmlDocumentFragment.cs
- WebPartTransformerCollection.cs
- WindowsClaimSet.cs
- ObjectConverter.cs
- Literal.cs
- TextWriterEngine.cs
- FixedTextPointer.cs
- NameValueCollection.cs
- SqlConnectionString.cs
- ApplicationId.cs
- BCLDebug.cs
- SchemaMapping.cs
- PassportAuthenticationEventArgs.cs
- CaseStatementProjectedSlot.cs
- DateTime.cs
- OdbcException.cs
- EmbeddedMailObjectsCollection.cs
- OlePropertyStructs.cs
- HeaderCollection.cs
- Config.cs
- AssemblyCollection.cs
- GatewayIPAddressInformationCollection.cs
- FormsAuthenticationConfiguration.cs
- OracleBinary.cs
- HashCodeCombiner.cs
- PersonalizationState.cs
- LicFileLicenseProvider.cs
- FreezableCollection.cs
- StoreAnnotationsMap.cs
- ETagAttribute.cs
- MatchingStyle.cs
- DefaultWorkflowLoaderService.cs
- QilTypeChecker.cs
- sqlinternaltransaction.cs
- ThreadExceptionDialog.cs
- NullableDoubleMinMaxAggregationOperator.cs
- NamedObject.cs
- GeometryModel3D.cs
- MediaScriptCommandRoutedEventArgs.cs
- SiteMapNodeItem.cs
- Parser.cs
- ClientApiGenerator.cs
- XPathAxisIterator.cs
- loginstatus.cs
- SecondaryIndexDefinition.cs
- UnitControl.cs
- AnonymousIdentificationModule.cs
- TableItemProviderWrapper.cs
- WebPartCancelEventArgs.cs
- XmlSignificantWhitespace.cs
- DataControlLinkButton.cs
- PathSegmentCollection.cs
- ViewStateModeByIdAttribute.cs
- SspiSafeHandles.cs
- FormViewDeletedEventArgs.cs
- MsmqInputSessionChannel.cs
- Imaging.cs
- EnumType.cs
- TextTreeNode.cs
- Color.cs
- QilPatternVisitor.cs
- WebPartsPersonalizationAuthorization.cs
- WebServiceData.cs
- OletxVolatileEnlistment.cs
- ObjectDataSourceDisposingEventArgs.cs
- EntityType.cs
- QueryOutputWriter.cs
- StringPropertyBuilder.cs
- CatalogPart.cs
- Timer.cs
- KeyPullup.cs
- ToolStripGrip.cs