Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ObjectManager.cs
- XamlTemplateSerializer.cs
- ExternalDataExchangeService.cs
- MediaContextNotificationWindow.cs
- InkCanvasInnerCanvas.cs
- Queue.cs
- LicenseContext.cs
- DbConnectionPoolOptions.cs
- IfAction.cs
- InternalResources.cs
- ProtectedConfigurationSection.cs
- MarshalByRefObject.cs
- ColumnCollection.cs
- XmlSchemaObject.cs
- Boolean.cs
- MsmqAppDomainProtocolHandler.cs
- FontFamilyConverter.cs
- Trace.cs
- DataTemplateKey.cs
- SrgsElementFactory.cs
- WebProxyScriptElement.cs
- ContextProperty.cs
- TableLayoutSettingsTypeConverter.cs
- FormsAuthenticationConfiguration.cs
- HttpChannelHelpers.cs
- CustomBindingCollectionElement.cs
- PopOutPanel.cs
- ArgumentException.cs
- DisplayNameAttribute.cs
- BindingMemberInfo.cs
- TransactionsSectionGroup.cs
- BufferedGraphics.cs
- WebPartsPersonalization.cs
- WindowsFormsHostPropertyMap.cs
- BuiltInExpr.cs
- ColumnClickEvent.cs
- OLEDB_Enum.cs
- PieceNameHelper.cs
- InputReferenceExpression.cs
- PointIndependentAnimationStorage.cs
- GenericTextProperties.cs
- _LocalDataStore.cs
- SchemaEntity.cs
- CssClassPropertyAttribute.cs
- ParenthesizePropertyNameAttribute.cs
- User.cs
- MembershipSection.cs
- QuaternionAnimation.cs
- PixelFormats.cs
- MemoryPressure.cs
- XmlChildNodes.cs
- SelectionItemPattern.cs
- TextTreeInsertUndoUnit.cs
- WebPartTracker.cs
- Variant.cs
- WindowsFormsHelpers.cs
- WrappedReader.cs
- ISessionStateStore.cs
- DispatcherTimer.cs
- Vector.cs
- XamlClipboardData.cs
- WSHttpBindingElement.cs
- BulletChrome.cs
- TemplateKey.cs
- Rotation3D.cs
- PathNode.cs
- DesignerSerializationVisibilityAttribute.cs
- TaskFileService.cs
- QfeChecker.cs
- EntityTransaction.cs
- Matrix.cs
- TreeWalkHelper.cs
- SocketManager.cs
- CustomBindingElement.cs
- TemplateInstanceAttribute.cs
- ConfigurationStrings.cs
- MultipartContentParser.cs
- CompositeScriptReference.cs
- DoubleLinkListEnumerator.cs
- FixedSOMImage.cs
- TargetParameterCountException.cs
- unsafenativemethodsother.cs
- BufferedGraphicsManager.cs
- SQLBytes.cs
- ScriptManager.cs
- LineGeometry.cs
- ContextMenu.cs
- MailWebEventProvider.cs
- HttpContext.cs
- SoapParser.cs
- DataTemplate.cs
- GeneralTransform2DTo3DTo2D.cs
- TreeNodeStyle.cs
- Context.cs
- ContextBase.cs
- MTConfigUtil.cs
- XmlTypeMapping.cs
- MessageQueueAccessControlEntry.cs
- CultureMapper.cs
- smtppermission.cs