Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ItemCollection.cs
- ObjectCloneHelper.cs
- WebBrowserNavigatedEventHandler.cs
- UserUseLicenseDictionaryLoader.cs
- TypeDescriptionProvider.cs
- RegexCompiler.cs
- Odbc32.cs
- XmlSchemaException.cs
- CompensationParticipant.cs
- Bits.cs
- LinqDataSourceValidationException.cs
- MessageSecurityOverTcp.cs
- WebBrowserUriTypeConverter.cs
- ProgressBar.cs
- Buffer.cs
- ModelUIElement3D.cs
- Environment.cs
- AssemblyResourceLoader.cs
- WebPartConnectionsConfigureVerb.cs
- BaseAsyncResult.cs
- BuildResult.cs
- AlignmentYValidation.cs
- RequestCacheValidator.cs
- EditBehavior.cs
- ManifestSignedXml.cs
- CalendarItem.cs
- EnvironmentPermission.cs
- TextElementEnumerator.cs
- TextParaLineResult.cs
- Converter.cs
- Quaternion.cs
- ReadOnlyDictionary.cs
- GridSplitterAutomationPeer.cs
- CustomAttributeSerializer.cs
- PerspectiveCamera.cs
- WebResponse.cs
- InvalidProgramException.cs
- BitmapCodecInfo.cs
- SettingsAttributes.cs
- XamlInt32CollectionSerializer.cs
- DataGridBoolColumn.cs
- SettingsSavedEventArgs.cs
- RouteItem.cs
- TextServicesCompartmentContext.cs
- Comparer.cs
- AdjustableArrowCap.cs
- Screen.cs
- DataListComponentEditor.cs
- Constants.cs
- ByteStorage.cs
- QueryOpeningEnumerator.cs
- WindowsTooltip.cs
- CodeArrayIndexerExpression.cs
- DesignerSerializerAttribute.cs
- WCFBuildProvider.cs
- NativeMethods.cs
- PatternMatcher.cs
- SoapClientMessage.cs
- TraceListener.cs
- RoutingExtension.cs
- TextLineResult.cs
- StylusPointPropertyUnit.cs
- UnsignedPublishLicense.cs
- SystemDiagnosticsSection.cs
- AllMembershipCondition.cs
- FrameworkName.cs
- DesignerTextBoxAdapter.cs
- HttpDictionary.cs
- GeneratedCodeAttribute.cs
- ImageAnimator.cs
- PublisherMembershipCondition.cs
- ToolboxComponentsCreatedEventArgs.cs
- ProxyElement.cs
- AnimationClock.cs
- StorageRoot.cs
- RadioButtonFlatAdapter.cs
- XmlIlVisitor.cs
- CodeAttributeArgumentCollection.cs
- RtfToXamlLexer.cs
- TreeBuilder.cs
- RijndaelManaged.cs
- GuidTagList.cs
- CompModSwitches.cs
- ValueUtilsSmi.cs
- HttpWebResponse.cs
- WsatAdminException.cs
- InternalMappingException.cs
- ChangeDirector.cs
- BasicExpandProvider.cs
- ChangeBlockUndoRecord.cs
- DataMisalignedException.cs
- Screen.cs
- DataServiceBehavior.cs
- Parameter.cs
- XmlResolver.cs
- TextTreeRootNode.cs
- Point4DConverter.cs
- ColorContext.cs
- Symbol.cs
- DynamicObject.cs