Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CompiledELinqQueryState.cs
- PersonalizationEntry.cs
- FocusWithinProperty.cs
- NativeCompoundFileAPIs.cs
- ClientConfigurationHost.cs
- UTF7Encoding.cs
- DictionaryContent.cs
- Focus.cs
- StandardTransformFactory.cs
- PersonalizationProvider.cs
- ReflectionUtil.cs
- IteratorFilter.cs
- LastQueryOperator.cs
- TypeSystemHelpers.cs
- DefaultProxySection.cs
- FillRuleValidation.cs
- SqlServer2KCompatibilityAnnotation.cs
- CollectionBase.cs
- ServicePoint.cs
- Region.cs
- AnonymousIdentificationModule.cs
- XPathQilFactory.cs
- TextWriterTraceListener.cs
- oledbconnectionstring.cs
- CodeDefaultValueExpression.cs
- TextServicesPropertyRanges.cs
- SimpleTypeResolver.cs
- WebServiceTypeData.cs
- ScriptManagerProxy.cs
- SmiGettersStream.cs
- SQLInt32.cs
- SiteMapDataSourceView.cs
- DictionaryBase.cs
- UIntPtr.cs
- HtmlUtf8RawTextWriter.cs
- InputLanguage.cs
- LineServicesRun.cs
- ProviderSettingsCollection.cs
- ConfigurationException.cs
- FactoryGenerator.cs
- HttpResponseInternalWrapper.cs
- TcpTransportSecurityElement.cs
- EntityModelSchemaGenerator.cs
- DrawListViewItemEventArgs.cs
- AsymmetricSignatureFormatter.cs
- PackageRelationship.cs
- SystemUnicastIPAddressInformation.cs
- FlowDocumentView.cs
- SQLString.cs
- EndpointAddress.cs
- TouchFrameEventArgs.cs
- ISAPIRuntime.cs
- BrowserDefinitionCollection.cs
- SqlTriggerAttribute.cs
- Bits.cs
- GroupBox.cs
- TypeGeneratedEventArgs.cs
- FixedMaxHeap.cs
- WizardForm.cs
- SecurityManager.cs
- PixelShader.cs
- DescendentsWalker.cs
- TextInfo.cs
- SiteMapNodeCollection.cs
- DataGridAutomationPeer.cs
- ArrayMergeHelper.cs
- CodeTypeReferenceExpression.cs
- TablePatternIdentifiers.cs
- VBCodeProvider.cs
- InputScope.cs
- ColorIndependentAnimationStorage.cs
- TargetInvocationException.cs
- ByeMessage11.cs
- TextEditorContextMenu.cs
- DebuggerAttributes.cs
- TaiwanLunisolarCalendar.cs
- TraceSection.cs
- DesignerInterfaces.cs
- isolationinterop.cs
- Journal.cs
- CopyOnWriteList.cs
- CardSpaceShim.cs
- CommandLibraryHelper.cs
- PageAsyncTask.cs
- ClientUtils.cs
- ArraySet.cs
- FixUp.cs
- AsymmetricSignatureFormatter.cs
- AlphabeticalEnumConverter.cs
- TabControl.cs
- HtmlSelect.cs
- Directory.cs
- RepeatButton.cs
- MultipartIdentifier.cs
- ToolboxBitmapAttribute.cs
- ExpressionList.cs
- PointCollection.cs
- RolePrincipal.cs
- FontFamily.cs
- XPathSingletonIterator.cs