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
- AssemblyNameUtility.cs
- StrongName.cs
- ExpressionBinding.cs
- KeyedQueue.cs
- BindingContext.cs
- ListItemsPage.cs
- HtmlTableRowCollection.cs
- OpenFileDialog.cs
- PersistStreamTypeWrapper.cs
- InternalCache.cs
- WorkflowStateRollbackService.cs
- SchemaConstraints.cs
- pingexception.cs
- CssStyleCollection.cs
- ServiceChannelFactory.cs
- ToolStripPanelSelectionBehavior.cs
- ImportCatalogPart.cs
- ArrayList.cs
- AspCompat.cs
- SqlMetaData.cs
- FilterElement.cs
- TextBoxRenderer.cs
- ToggleProviderWrapper.cs
- XmlTextReader.cs
- EventMappingSettingsCollection.cs
- WebBaseEventKeyComparer.cs
- RowsCopiedEventArgs.cs
- CellParaClient.cs
- LOSFormatter.cs
- EventHandlerService.cs
- SetIterators.cs
- MappingItemCollection.cs
- FreezableOperations.cs
- _KerberosClient.cs
- UnsafeNetInfoNativeMethods.cs
- System.Data.OracleClient_BID.cs
- DayRenderEvent.cs
- GenericXmlSecurityToken.cs
- XmlSchemaComplexContentRestriction.cs
- HtmlInputSubmit.cs
- Vector3DValueSerializer.cs
- DataGridViewCheckBoxColumn.cs
- ReferenceSchema.cs
- StrongNameIdentityPermission.cs
- PrinterUnitConvert.cs
- MessageQueueAccessControlEntry.cs
- BufferedReceiveManager.cs
- LicenseProviderAttribute.cs
- BinarySecretSecurityToken.cs
- RelationshipDetailsCollection.cs
- UnmanagedHandle.cs
- NameScopePropertyAttribute.cs
- Delegate.cs
- MarkupWriter.cs
- SqlProvider.cs
- StorageMappingItemLoader.cs
- NumericUpDownAccelerationCollection.cs
- Form.cs
- _TLSstream.cs
- ConstrainedGroup.cs
- GenericWebPart.cs
- XmlSchemaDocumentation.cs
- EmbeddedMailObject.cs
- FlatButtonAppearance.cs
- RowUpdatedEventArgs.cs
- CultureSpecificStringDictionary.cs
- BaseConfigurationRecord.cs
- WebPartsPersonalizationAuthorization.cs
- Mapping.cs
- FlagsAttribute.cs
- SamlAuthorizationDecisionClaimResource.cs
- ChangePasswordAutoFormat.cs
- RowUpdatedEventArgs.cs
- WebBrowserSiteBase.cs
- SqlDataSourceRefreshSchemaForm.cs
- SourceElementsCollection.cs
- ThicknessKeyFrameCollection.cs
- DomainUpDown.cs
- GridViewCellAutomationPeer.cs
- UnknownMessageReceivedEventArgs.cs
- QueryCursorEventArgs.cs
- XmlQueryStaticData.cs
- ObjectDataSourceView.cs
- Rect3DValueSerializer.cs
- SafeLibraryHandle.cs
- UniqueConstraint.cs
- NullToBooleanConverter.cs
- EnvelopedSignatureTransform.cs
- DocobjHost.cs
- NCryptNative.cs
- Point4DConverter.cs
- XmlElementAttribute.cs
- XamlDesignerSerializationManager.cs
- WebPartConnection.cs
- PointAnimationUsingPath.cs
- TemplateXamlParser.cs
- FormsAuthenticationEventArgs.cs
- SqlProviderManifest.cs
- RoleManagerSection.cs
- SimpleBitVector32.cs