Code:
/ DotNET / DotNET / 8.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
- RawTextInputReport.cs
- SecurityMessageProperty.cs
- DefaultEvaluationContext.cs
- SchemaElement.cs
- ButtonColumn.cs
- WebPartConnectionsCancelVerb.cs
- UpDownBase.cs
- CallbackValidatorAttribute.cs
- NamespaceMapping.cs
- LateBoundChannelParameterCollection.cs
- AuthenticationModuleElement.cs
- ServiceModelEnumValidatorAttribute.cs
- PageContentCollection.cs
- SafeProcessHandle.cs
- TableLayoutStyleCollection.cs
- DBDataPermission.cs
- BaseHashHelper.cs
- xmlfixedPageInfo.cs
- TransformGroup.cs
- LifetimeServices.cs
- RowToFieldTransformer.cs
- IconHelper.cs
- CodeCompileUnit.cs
- ColorAnimationUsingKeyFrames.cs
- WebPartHeaderCloseVerb.cs
- XslTransformFileEditor.cs
- StringWriter.cs
- EntityClientCacheEntry.cs
- KeyedHashAlgorithm.cs
- Lease.cs
- SortedDictionary.cs
- CompiledRegexRunner.cs
- SizeFConverter.cs
- Pkcs7Recipient.cs
- XPathDocumentIterator.cs
- GradientStop.cs
- LinkedResourceCollection.cs
- CorrelationManager.cs
- TearOffProxy.cs
- ContainerControl.cs
- Helpers.cs
- TemplateManager.cs
- VerticalAlignConverter.cs
- BamlRecordHelper.cs
- ExternalCalls.cs
- HealthMonitoringSectionHelper.cs
- WorkflowDesignerColors.cs
- Codec.cs
- ResolvedKeyFrameEntry.cs
- StringSorter.cs
- Int32RectConverter.cs
- ByteStorage.cs
- JavascriptXmlWriterWrapper.cs
- PkcsMisc.cs
- RoleService.cs
- FileStream.cs
- ObjectDataSource.cs
- ControlParameter.cs
- UserPreferenceChangingEventArgs.cs
- DataGridCellAutomationPeer.cs
- CodeSnippetStatement.cs
- MetadataCache.cs
- DataTableCollection.cs
- EntityCommand.cs
- ZoneIdentityPermission.cs
- RegularExpressionValidator.cs
- HotSpot.cs
- XmlSerializationReader.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- Rfc2898DeriveBytes.cs
- BaseTemplatedMobileComponentEditor.cs
- CryptoApi.cs
- ShapingEngine.cs
- SoapInteropTypes.cs
- ComponentDispatcher.cs
- ClientOptions.cs
- XPathException.cs
- ResourceDictionary.cs
- SerialPinChanges.cs
- XmlSerializerFactory.cs
- SHA384Managed.cs
- ByteViewer.cs
- HtmlImage.cs
- DataGridViewButtonColumn.cs
- XmlJsonWriter.cs
- TextBoxLine.cs
- SqlComparer.cs
- CapabilitiesAssignment.cs
- AttributeUsageAttribute.cs
- RsaSecurityToken.cs
- DynamicActivityProperty.cs
- MulticastOption.cs
- DataTrigger.cs
- MergeLocalizationDirectives.cs
- SHA512Managed.cs
- DependencyPropertyDescriptor.cs
- WebHttpDispatchOperationSelectorData.cs
- TraceContext.cs
- ToolStripItemEventArgs.cs
- TypeUtils.cs