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
- Select.cs
- MdiWindowListStrip.cs
- CustomErrorsSection.cs
- CrossContextChannel.cs
- StringDictionaryEditor.cs
- EntityContainerRelationshipSetEnd.cs
- MarshalByRefObject.cs
- DateTimeFormatInfoScanner.cs
- CombinedGeometry.cs
- BypassElementCollection.cs
- XmlHelper.cs
- DesignerFrame.cs
- DataTable.cs
- XPathParser.cs
- QueueProcessor.cs
- hwndwrapper.cs
- ProjectionCamera.cs
- ProfileSection.cs
- FormatException.cs
- ReadOnlyState.cs
- DataSourceHelper.cs
- CodeSubDirectoriesCollection.cs
- ByteStreamGeometryContext.cs
- DesignerCategoryAttribute.cs
- XComponentModel.cs
- DragEventArgs.cs
- OneOfScalarConst.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- exports.cs
- Publisher.cs
- NativeMethods.cs
- _TransmitFileOverlappedAsyncResult.cs
- DataAdapter.cs
- RuntimeCompatibilityAttribute.cs
- ProgressChangedEventArgs.cs
- AlphabetConverter.cs
- NoClickablePointException.cs
- ContainerActivationHelper.cs
- EventProviderWriter.cs
- PointAnimationUsingPath.cs
- DesignBindingConverter.cs
- CustomErrorsSectionWrapper.cs
- CodePrimitiveExpression.cs
- SyntaxCheck.cs
- EntityDescriptor.cs
- StylusPointProperties.cs
- TransformCryptoHandle.cs
- VisualStyleElement.cs
- GridViewDeleteEventArgs.cs
- ContextMarshalException.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- PassportAuthenticationEventArgs.cs
- ComponentEditorPage.cs
- ValidationRule.cs
- ScaleTransform.cs
- EntitySqlException.cs
- ILGen.cs
- SafeProcessHandle.cs
- ParserOptions.cs
- DebugViewWriter.cs
- AutomationIdentifierGuids.cs
- StreamGeometry.cs
- Emitter.cs
- NullableLongAverageAggregationOperator.cs
- UnsafeNativeMethods.cs
- Debug.cs
- CommonGetThemePartSize.cs
- ExtensionElement.cs
- Main.cs
- ExplicitDiscriminatorMap.cs
- WebEventCodes.cs
- SqlVersion.cs
- RegisteredHiddenField.cs
- PrimitiveXmlSerializers.cs
- CreateParams.cs
- GuidTagList.cs
- AssertSection.cs
- StrokeSerializer.cs
- _FtpDataStream.cs
- TextRunTypographyProperties.cs
- MDIClient.cs
- TemplateKeyConverter.cs
- Faults.cs
- EventHandlersStore.cs
- NativeMethods.cs
- CheckBoxAutomationPeer.cs
- altserialization.cs
- RoutingEndpointTrait.cs
- Vector3DIndependentAnimationStorage.cs
- SystemFonts.cs
- TabPageDesigner.cs
- InputLangChangeEvent.cs
- ExpandCollapseProviderWrapper.cs
- COAUTHINFO.cs
- DefaultSerializationProviderAttribute.cs
- OpCodes.cs
- ManagedIStream.cs
- GenericAuthenticationEventArgs.cs
- WindowsImpersonationContext.cs
- StandardCommands.cs