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
- Camera.cs
- WebPartsPersonalizationAuthorization.cs
- BamlMapTable.cs
- PropertyCollection.cs
- EdmTypeAttribute.cs
- _NTAuthentication.cs
- CodeAccessPermission.cs
- TextControlDesigner.cs
- SystemIcmpV4Statistics.cs
- BuildResult.cs
- TdsParserStateObject.cs
- SlipBehavior.cs
- StrongNameMembershipCondition.cs
- XPathNodeInfoAtom.cs
- XPathArrayIterator.cs
- AdjustableArrowCap.cs
- XmlSchemaSimpleTypeList.cs
- BitmapDecoder.cs
- InstallerTypeAttribute.cs
- KeyValuePair.cs
- TypeBrowser.xaml.cs
- PropertyCondition.cs
- UnsafeNativeMethods.cs
- UnauthorizedAccessException.cs
- UserControlCodeDomTreeGenerator.cs
- SiteMapDataSourceView.cs
- ApplicationDirectoryMembershipCondition.cs
- PointAnimationBase.cs
- CodeObject.cs
- QilStrConcatenator.cs
- RSAPKCS1SignatureDeformatter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TempEnvironment.cs
- TdsRecordBufferSetter.cs
- FragmentQueryKB.cs
- SqlReferenceCollection.cs
- IdentityNotMappedException.cs
- ActivityBuilderXamlWriter.cs
- XmlAttributeCache.cs
- InvalidCommandTreeException.cs
- Visual3DCollection.cs
- ProcessHostServerConfig.cs
- ApplicationTrust.cs
- ExpressionConverter.cs
- ManagementPath.cs
- RectangleHotSpot.cs
- SaveFileDialog.cs
- CachingParameterInspector.cs
- SQLInt64.cs
- SizeAnimation.cs
- MappingSource.cs
- Rules.cs
- PersonalizationProviderCollection.cs
- ActiveXContainer.cs
- StringSorter.cs
- ResXResourceSet.cs
- MatchSingleFxEngineOpcode.cs
- ContextMenu.cs
- Base64Stream.cs
- Propagator.Evaluator.cs
- CheckPair.cs
- SamlNameIdentifierClaimResource.cs
- Bidi.cs
- DebugHandleTracker.cs
- Mapping.cs
- LongValidatorAttribute.cs
- WindowsListBox.cs
- TogglePatternIdentifiers.cs
- WebPartDeleteVerb.cs
- xsdvalidator.cs
- TextTreeUndoUnit.cs
- SR.cs
- NetworkInterface.cs
- HttpModulesSection.cs
- DbMetaDataCollectionNames.cs
- SmuggledIUnknown.cs
- SqlCacheDependencyDatabase.cs
- ISCIIEncoding.cs
- TableCell.cs
- GregorianCalendarHelper.cs
- StandardRuntimeEnumValidator.cs
- Collection.cs
- CompressedStack.cs
- SettingsPropertyWrongTypeException.cs
- Security.cs
- SqlUtil.cs
- MapPathBasedVirtualPathProvider.cs
- DateRangeEvent.cs
- OleDbMetaDataFactory.cs
- OdbcError.cs
- IsolatedStorageFile.cs
- MetaModel.cs
- SnapLine.cs
- TraceUtility.cs
- FrameworkElement.cs
- WebPartZoneCollection.cs
- TaskFileService.cs
- DependencyPropertyChangedEventArgs.cs
- UsernameTokenFactoryCredential.cs
- Attribute.cs