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
- SocketInformation.cs
- CodeDelegateCreateExpression.cs
- LambdaCompiler.Binary.cs
- DynamicPropertyReader.cs
- ServicePoint.cs
- CompiledRegexRunner.cs
- Command.cs
- Path.cs
- IOThreadScheduler.cs
- _ListenerResponseStream.cs
- UnsafeNativeMethods.cs
- StylusPoint.cs
- ZipQueryOperator.cs
- DesignerForm.cs
- CheckBoxPopupAdapter.cs
- FederatedMessageSecurityOverHttp.cs
- ProfileBuildProvider.cs
- FormViewInsertEventArgs.cs
- TrustManagerMoreInformation.cs
- SymmetricAlgorithm.cs
- webbrowsersite.cs
- DocumentPage.cs
- EntityDataSourceValidationException.cs
- MarkupExtensionSerializer.cs
- HashAlgorithm.cs
- LoadedEvent.cs
- ToolStripOverflowButton.cs
- MemoryFailPoint.cs
- Bits.cs
- AlignmentXValidation.cs
- ConfigurationSectionGroupCollection.cs
- SqlConnectionFactory.cs
- BufferedGraphicsManager.cs
- CodeAttributeDeclarationCollection.cs
- AutomationPatternInfo.cs
- SnapLine.cs
- DataListCommandEventArgs.cs
- ParameterCollectionEditor.cs
- TextContainerChangeEventArgs.cs
- PersistChildrenAttribute.cs
- ConsoleTraceListener.cs
- ObjectListSelectEventArgs.cs
- Rect3D.cs
- IdentifierService.cs
- MimeMultiPart.cs
- GatewayDefinition.cs
- XmlChoiceIdentifierAttribute.cs
- WebBrowserSiteBase.cs
- DBDataPermissionAttribute.cs
- DataBinder.cs
- ComponentCache.cs
- EdmSchemaAttribute.cs
- SqlDependencyUtils.cs
- SqlXmlStorage.cs
- DateTimePicker.cs
- ErrorWrapper.cs
- XmlHelper.cs
- SecurityProtocolFactory.cs
- CommandDevice.cs
- ExpressionLexer.cs
- XmlNodeChangedEventManager.cs
- GridViewRowCollection.cs
- XDRSchema.cs
- WebPartConnectionsCancelVerb.cs
- ZipIOCentralDirectoryFileHeader.cs
- XmlSchemas.cs
- OleDbWrapper.cs
- AnchoredBlock.cs
- ManagedCodeMarkers.cs
- FixedNode.cs
- FlowDocumentReader.cs
- SHA256.cs
- PreProcessInputEventArgs.cs
- XmlQueryOutput.cs
- TextReader.cs
- PropertyTabAttribute.cs
- AggregateException.cs
- CommentEmitter.cs
- SpeechRecognizer.cs
- RtType.cs
- ZipFileInfoCollection.cs
- CharKeyFrameCollection.cs
- ZipFileInfoCollection.cs
- ScriptMethodAttribute.cs
- BindingSourceDesigner.cs
- CodePropertyReferenceExpression.cs
- WebCategoryAttribute.cs
- D3DImage.cs
- OperatorExpressions.cs
- TdsParserStateObject.cs
- EtwTrace.cs
- SoapSchemaExporter.cs
- DataObject.cs
- SqlParameterCollection.cs
- SAPIEngineTypes.cs
- GacUtil.cs
- UrlRoutingHandler.cs
- WebPartManagerInternals.cs
- BitmapEffectState.cs
- HtmlLink.cs