Code:
/ DotNET / DotNET / 8.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
- SecureConversationSecurityTokenParameters.cs
- CodeSnippetExpression.cs
- MouseEvent.cs
- UnsafeNativeMethods.cs
- Rule.cs
- EventRouteFactory.cs
- PrintEvent.cs
- AnchoredBlock.cs
- RightsManagementProvider.cs
- OleDbInfoMessageEvent.cs
- ToolStripGripRenderEventArgs.cs
- Parser.cs
- PipelineModuleStepContainer.cs
- PackageRelationshipCollection.cs
- ContractsBCL.cs
- DnsPermission.cs
- StringAnimationBase.cs
- PropertyEmitterBase.cs
- unsafeIndexingFilterStream.cs
- AppSettingsReader.cs
- EntityCommandExecutionException.cs
- TextReader.cs
- FontResourceCache.cs
- TaskFileService.cs
- ExceptQueryOperator.cs
- ProcessThread.cs
- ClientScriptItem.cs
- ReverseInheritProperty.cs
- FixedNode.cs
- DataTable.cs
- HashCodeCombiner.cs
- XPathDocumentNavigator.cs
- Transform.cs
- Soap.cs
- ActiveXHelper.cs
- Message.cs
- SQLMoney.cs
- DataBoundControlDesigner.cs
- ReferencedCollectionType.cs
- SignerInfo.cs
- MouseButtonEventArgs.cs
- DocumentViewerAutomationPeer.cs
- CommandExpr.cs
- SQLDouble.cs
- SoapFault.cs
- FileLevelControlBuilderAttribute.cs
- PriorityBinding.cs
- GPRECTF.cs
- XmlSchemaElement.cs
- HtmlTableRowCollection.cs
- XmlObjectSerializerReadContextComplexJson.cs
- LinqDataSourceSelectEventArgs.cs
- HierarchicalDataSourceControl.cs
- EmissiveMaterial.cs
- GroupByExpressionRewriter.cs
- WebPartConnectionsCancelVerb.cs
- TextStore.cs
- Funcletizer.cs
- UnsignedPublishLicense.cs
- Vars.cs
- RadioButtonAutomationPeer.cs
- StringConverter.cs
- TaskCanceledException.cs
- PageCatalogPartDesigner.cs
- AliasExpr.cs
- PageParser.cs
- OdbcEnvironmentHandle.cs
- LoginUtil.cs
- XhtmlBasicLinkAdapter.cs
- ThreadInterruptedException.cs
- NameValueConfigurationCollection.cs
- Math.cs
- ControlValuePropertyAttribute.cs
- ObsoleteAttribute.cs
- OleDbRowUpdatedEvent.cs
- OleDbInfoMessageEvent.cs
- RootProfilePropertySettingsCollection.cs
- RuntimeCompatibilityAttribute.cs
- XmlAutoDetectWriter.cs
- ManagedWndProcTracker.cs
- EntityDataSourceEntityTypeFilterItem.cs
- CurrentChangingEventManager.cs
- BuiltInPermissionSets.cs
- DPCustomTypeDescriptor.cs
- TimeSpanStorage.cs
- CodeIdentifier.cs
- SimpleTypesSurrogate.cs
- Item.cs
- Group.cs
- ScrollPattern.cs
- ComponentResourceKey.cs
- PropertyManager.cs
- GridViewRowCollection.cs
- CdpEqualityComparer.cs
- ACL.cs
- SynchronizationLockException.cs
- CodeAccessPermission.cs
- Msec.cs
- QueryGenerator.cs
- EventProviderWriter.cs