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
- InstanceBehavior.cs
- SqlXml.cs
- AttributeUsageAttribute.cs
- ReturnValue.cs
- MenuAutomationPeer.cs
- ProxyAssemblyNotLoadedException.cs
- NotifyIcon.cs
- TableMethodGenerator.cs
- AttributeUsageAttribute.cs
- NameGenerator.cs
- VersionPair.cs
- DefaultEvaluationContext.cs
- localization.cs
- CachedFontFamily.cs
- CatalogPart.cs
- OdbcConnection.cs
- FileDetails.cs
- ActivationArguments.cs
- PathFigure.cs
- XslUrlEditor.cs
- TextEncodedRawTextWriter.cs
- XmlAttributeProperties.cs
- ExeConfigurationFileMap.cs
- MenuAdapter.cs
- Comparer.cs
- StructuralType.cs
- FormViewAutoFormat.cs
- xmlglyphRunInfo.cs
- UpdateExpressionVisitor.cs
- FullTextLine.cs
- CommentAction.cs
- arclist.cs
- SQLCharsStorage.cs
- CachedFontFamily.cs
- IssuanceLicense.cs
- MetabaseReader.cs
- SizeAnimationUsingKeyFrames.cs
- ScopelessEnumAttribute.cs
- LicenseManager.cs
- HistoryEventArgs.cs
- TextEffect.cs
- ConsumerConnectionPointCollection.cs
- AssemblyBuilder.cs
- HttpModuleActionCollection.cs
- XmlKeywords.cs
- MultiplexingFormatMapping.cs
- TreeNode.cs
- RankException.cs
- ExpressionDumper.cs
- LinkDesigner.cs
- ParagraphVisual.cs
- IdentityNotMappedException.cs
- CommandTreeTypeHelper.cs
- XmlSchemaAnnotated.cs
- RuntimeHandles.cs
- ObjectQueryState.cs
- InternalSafeNativeMethods.cs
- MonthCalendar.cs
- BasicExpressionVisitor.cs
- TableItemStyle.cs
- OutputCacheSection.cs
- MonthCalendarDesigner.cs
- GenericAuthenticationEventArgs.cs
- SQLDoubleStorage.cs
- BaseCAMarshaler.cs
- CultureTableRecord.cs
- ClientBuildManager.cs
- Point3DCollection.cs
- TrackBar.cs
- FontDialog.cs
- HuffmanTree.cs
- _UriTypeConverter.cs
- SoapTypeAttribute.cs
- NotConverter.cs
- MetadataItem_Static.cs
- IndependentlyAnimatedPropertyMetadata.cs
- BamlStream.cs
- CheckBoxBaseAdapter.cs
- AddInActivator.cs
- ConfigurationHandlersInstallComponent.cs
- SqlWriter.cs
- Lease.cs
- Native.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- CompilerScopeManager.cs
- NonNullItemCollection.cs
- xml.cs
- HostVisual.cs
- PrimaryKeyTypeConverter.cs
- ServicePoint.cs
- ConfigurationValidatorBase.cs
- NativeMethods.cs
- RichTextBoxDesigner.cs
- MetadataPropertyAttribute.cs
- GridViewRow.cs
- TransactionManager.cs
- CustomAttribute.cs
- TableCellCollection.cs
- InvalidPrinterException.cs
- WindowsAuthenticationEventArgs.cs