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
- SqlDataSourceQueryEditorForm.cs
- CroppedBitmap.cs
- StyleSheetRefUrlEditor.cs
- EdgeProfileValidation.cs
- LogPolicy.cs
- RadioButtonRenderer.cs
- LabelLiteral.cs
- TypeSystem.cs
- MemberPathMap.cs
- SelfSignedCertificate.cs
- ObjectDesignerDataSourceView.cs
- WebEventTraceProvider.cs
- EdmSchemaAttribute.cs
- HttpCapabilitiesBase.cs
- MetadataArtifactLoaderFile.cs
- ContainerUIElement3D.cs
- SqlGatherConsumedAliases.cs
- Expression.cs
- _FtpDataStream.cs
- _NTAuthentication.cs
- XPathDocument.cs
- DataBoundControl.cs
- WindowsAltTab.cs
- AppLevelCompilationSectionCache.cs
- HttpServerVarsCollection.cs
- DataRelation.cs
- XmlFormatWriterGenerator.cs
- streamingZipPartStream.cs
- X509AudioLogo.cs
- DataGridCheckBoxColumn.cs
- XmlCodeExporter.cs
- SerializationSectionGroup.cs
- InstanceLockLostException.cs
- DrawingVisualDrawingContext.cs
- PrtTicket_Editor.cs
- DbDataReader.cs
- GcSettings.cs
- TargetException.cs
- ProxyAttribute.cs
- WindowsNonControl.cs
- ZipIOCentralDirectoryFileHeader.cs
- FlagsAttribute.cs
- Drawing.cs
- CallInfo.cs
- ImageInfo.cs
- InvalidFilterCriteriaException.cs
- FixedSOMPageElement.cs
- RegexCompiler.cs
- RijndaelCryptoServiceProvider.cs
- SqlConnectionPoolProviderInfo.cs
- DataRelationPropertyDescriptor.cs
- RequestCachePolicyConverter.cs
- FixedDSBuilder.cs
- XsdBuilder.cs
- XMLDiffLoader.cs
- WindowsClaimSet.cs
- Mapping.cs
- PreviewPageInfo.cs
- HtmlMeta.cs
- TrackingProfileDeserializationException.cs
- TrackingQuery.cs
- StrongNameIdentityPermission.cs
- UrlMappingsModule.cs
- InvokeGenerator.cs
- PersonalizationState.cs
- LayoutExceptionEventArgs.cs
- InitializationEventAttribute.cs
- SchemaNamespaceManager.cs
- HttpApplicationFactory.cs
- IsolatedStorageFilePermission.cs
- WindowsPrincipal.cs
- SimpleRecyclingCache.cs
- ResourceExpression.cs
- DrawingAttributes.cs
- ConfigXmlReader.cs
- SafeNativeMethods.cs
- DataReaderContainer.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- DataGridViewBand.cs
- StringAnimationUsingKeyFrames.cs
- PermissionAttributes.cs
- DataGridViewCellValueEventArgs.cs
- PrivilegedConfigurationManager.cs
- Separator.cs
- BaseTypeViewSchema.cs
- TemplateXamlParser.cs
- AbsoluteQuery.cs
- InnerItemCollectionView.cs
- ControlBuilderAttribute.cs
- Accessible.cs
- FormsAuthenticationModule.cs
- GeometryGroup.cs
- Attributes.cs
- GridView.cs
- InvalidPrinterException.cs
- TextFormatterImp.cs
- DataGridViewRow.cs
- PublishLicense.cs
- GridView.cs
- Shared.cs