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
- Sorting.cs
- AtomServiceDocumentSerializer.cs
- SqlConnectionStringBuilder.cs
- OpCellTreeNode.cs
- Atom10ItemFormatter.cs
- CssClassPropertyAttribute.cs
- HashAlgorithm.cs
- GenericAuthenticationEventArgs.cs
- ExpressionsCollectionEditor.cs
- BrowserCapabilitiesCodeGenerator.cs
- CodeTypeReferenceExpression.cs
- ToolTipService.cs
- BroadcastEventHelper.cs
- StandardToolWindows.cs
- TextParagraphProperties.cs
- CursorConverter.cs
- RSAProtectedConfigurationProvider.cs
- PointConverter.cs
- BitmapCache.cs
- ApplicationDirectory.cs
- EFAssociationProvider.cs
- ClaimComparer.cs
- ChannelParameterCollection.cs
- StatusBar.cs
- ChangeConflicts.cs
- _NegoState.cs
- Attachment.cs
- MethodBuilderInstantiation.cs
- XamlNamespaceHelper.cs
- DBParameter.cs
- PassportAuthenticationModule.cs
- MenuCommand.cs
- XPathParser.cs
- WindowsStartMenu.cs
- WebServiceData.cs
- HierarchicalDataSourceControl.cs
- DiagnosticsConfiguration.cs
- SettingsSection.cs
- WpfGeneratedKnownTypes.cs
- WebPartConnectionsConfigureVerb.cs
- DataSourceSelectArguments.cs
- ProcessHostConfigUtils.cs
- AsyncOperation.cs
- DbRetry.cs
- UrlMappingCollection.cs
- ClaimTypes.cs
- StringAttributeCollection.cs
- ImageListUtils.cs
- ResourcePermissionBase.cs
- AdvancedBindingEditor.cs
- WebDescriptionAttribute.cs
- CollectionViewGroup.cs
- TextBox.cs
- XmlSchemaElement.cs
- ConnectionManagementElement.cs
- ProviderMetadataCachedInformation.cs
- MetadataHelper.cs
- ContextQuery.cs
- NonVisualControlAttribute.cs
- CollaborationHelperFunctions.cs
- EdmFunction.cs
- Stack.cs
- Symbol.cs
- SmiSettersStream.cs
- wgx_render.cs
- ListBoxAutomationPeer.cs
- PkcsMisc.cs
- Substitution.cs
- Emitter.cs
- InternalCache.cs
- DesignerCategoryAttribute.cs
- HtmlButton.cs
- Calendar.cs
- XmlArrayItemAttribute.cs
- Rectangle.cs
- DbConnectionStringBuilder.cs
- BitArray.cs
- XmlToDatasetMap.cs
- IdentifierService.cs
- TreeView.cs
- WebPartTransformer.cs
- DocobjHost.cs
- PersistChildrenAttribute.cs
- ImageList.cs
- UserPreferenceChangedEventArgs.cs
- SqlDependency.cs
- AxHost.cs
- KerberosSecurityTokenProvider.cs
- GcHandle.cs
- ConfigurationSchemaErrors.cs
- SerializationFieldInfo.cs
- ExternalCalls.cs
- IdentityHolder.cs
- InvalidateEvent.cs
- ImageDrawing.cs
- Vector.cs
- Command.cs
- TrackingServices.cs
- HtmlEncodedRawTextWriter.cs
- EntityDataSourceSelectingEventArgs.cs