Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XamlUtilities.cs
- Privilege.cs
- SafeFileMapViewHandle.cs
- CodeSubDirectoriesCollection.cs
- SmiXetterAccessMap.cs
- FontCollection.cs
- ProfileModule.cs
- DrawingAttributes.cs
- RewritingProcessor.cs
- XmlSchemaAny.cs
- XmlSchemaObjectTable.cs
- CapabilitiesRule.cs
- GridErrorDlg.cs
- ArraySegment.cs
- BypassElementCollection.cs
- BitmapEffectGeneralTransform.cs
- TextModifier.cs
- ToolStripOverflowButton.cs
- ShapeTypeface.cs
- SimpleParser.cs
- BrowserInteropHelper.cs
- VectorKeyFrameCollection.cs
- HeaderElement.cs
- ParseChildrenAsPropertiesAttribute.cs
- CompleteWizardStep.cs
- SourceFileBuildProvider.cs
- FrameworkContentElement.cs
- PerformanceCounterManager.cs
- CompositeFontParser.cs
- Literal.cs
- DependencyObjectProvider.cs
- RSAOAEPKeyExchangeDeformatter.cs
- FieldNameLookup.cs
- SamlAssertionKeyIdentifierClause.cs
- StructuredTypeInfo.cs
- SettingsSavedEventArgs.cs
- DataTableNewRowEvent.cs
- MetadataUtil.cs
- FileUtil.cs
- XmlDataImplementation.cs
- Parser.cs
- Popup.cs
- VectorValueSerializer.cs
- EventLogEntryCollection.cs
- Transactions.cs
- UnsafeNativeMethodsCLR.cs
- TypeSystem.cs
- RemotingAttributes.cs
- ExclusiveTcpListener.cs
- ListBindableAttribute.cs
- SecurityRuntime.cs
- TypeSystem.cs
- ContextMenu.cs
- isolationinterop.cs
- MarkupExtensionParser.cs
- XmlText.cs
- ParserExtension.cs
- NavigatorOutput.cs
- LostFocusEventManager.cs
- ImageCollectionEditor.cs
- GPRECT.cs
- LinearGradientBrush.cs
- PreviewPageInfo.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- FileLevelControlBuilderAttribute.cs
- FixedTextBuilder.cs
- TabControl.cs
- DataGridViewColumnEventArgs.cs
- TimeSpanStorage.cs
- Identity.cs
- ExtenderProvidedPropertyAttribute.cs
- CounterSet.cs
- EntitySet.cs
- Currency.cs
- SerializationInfo.cs
- Canonicalizers.cs
- GridPattern.cs
- CompiledXpathExpr.cs
- Set.cs
- CodeDelegateInvokeExpression.cs
- StagingAreaInputItem.cs
- smtppermission.cs
- XmlNode.cs
- CodeObject.cs
- AnnotationResource.cs
- RowTypePropertyElement.cs
- SoapFormatter.cs
- BezierSegment.cs
- VerificationAttribute.cs
- ProcessThread.cs
- ColumnClickEvent.cs
- MenuStrip.cs
- DataGridViewCellValidatingEventArgs.cs
- TabControl.cs
- BookmarkInfo.cs
- SoapReflectionImporter.cs
- TableLayoutStyle.cs
- Int16AnimationUsingKeyFrames.cs
- RawKeyboardInputReport.cs
- GreenMethods.cs