Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Substitution.cs
- PanelStyle.cs
- TextHintingModeValidation.cs
- ClientData.cs
- WebSysDisplayNameAttribute.cs
- BindingBase.cs
- OdbcRowUpdatingEvent.cs
- ConstNode.cs
- FormsAuthenticationUserCollection.cs
- LassoSelectionBehavior.cs
- XPathNavigator.cs
- XmlRawWriterWrapper.cs
- AssemblyCollection.cs
- DataGridViewCellLinkedList.cs
- FrameworkContentElementAutomationPeer.cs
- XPathCompileException.cs
- FileSystemEnumerable.cs
- MemoryResponseElement.cs
- hebrewshape.cs
- SettingsSection.cs
- DependencySource.cs
- ResolveMatches11.cs
- SimpleFieldTemplateFactory.cs
- Vector3DAnimation.cs
- SrgsOneOf.cs
- InternalPermissions.cs
- SignerInfo.cs
- Geometry.cs
- CannotUnloadAppDomainException.cs
- HttpInputStream.cs
- ArrayHelper.cs
- OutputScope.cs
- BindableAttribute.cs
- TableAdapterManagerHelper.cs
- ReadContentAsBinaryHelper.cs
- SelectedGridItemChangedEvent.cs
- CommandLineParser.cs
- InputScope.cs
- X509Certificate.cs
- _AutoWebProxyScriptWrapper.cs
- CryptographicAttribute.cs
- TemplateColumn.cs
- DataServiceProviderMethods.cs
- CqlBlock.cs
- CqlParser.cs
- WebPartVerb.cs
- DataGridViewMethods.cs
- RelationshipType.cs
- TextServicesCompartment.cs
- DrawingVisual.cs
- GenericTextProperties.cs
- VectorKeyFrameCollection.cs
- XXXOnTypeBuilderInstantiation.cs
- SqlException.cs
- XpsS0ValidatingLoader.cs
- WebPartDisplayMode.cs
- RoleService.cs
- PoisonMessageException.cs
- ClientFormsAuthenticationCredentials.cs
- HandlerFactoryCache.cs
- GridViewRowPresenterBase.cs
- CodeGenerationManager.cs
- Buffer.cs
- SystemWebSectionGroup.cs
- WebPartEditorCancelVerb.cs
- DataSetViewSchema.cs
- HtmlInputButton.cs
- DocumentAutomationPeer.cs
- AutoGeneratedField.cs
- SystemIcons.cs
- DeviceFilterDictionary.cs
- BaseTemplateBuildProvider.cs
- GlyphRunDrawing.cs
- XmlSecureResolver.cs
- ResourceManagerWrapper.cs
- ConfigUtil.cs
- AutomationIdentifierGuids.cs
- CorrelationTokenInvalidatedHandler.cs
- PerformanceCounterManager.cs
- RelatedPropertyManager.cs
- InputDevice.cs
- GridViewColumnHeaderAutomationPeer.cs
- EncoderFallback.cs
- ParameterModifier.cs
- WindowsListViewItemStartMenu.cs
- TableCell.cs
- MergeExecutor.cs
- XmlSchemaSimpleContent.cs
- XmlSchemaProviderAttribute.cs
- RuleAction.cs
- SmiRequestExecutor.cs
- GetImportFileNameRequest.cs
- DataGridViewCellCancelEventArgs.cs
- MSG.cs
- XmlBinaryReader.cs
- KeyInterop.cs
- MembershipValidatePasswordEventArgs.cs
- TextDpi.cs
- UncommonField.cs
- RightsManagementEncryptedStream.cs