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
- SwitchAttribute.cs
- DrawListViewItemEventArgs.cs
- RegistrationServices.cs
- XmlSchemaComplexContentRestriction.cs
- TreeWalkHelper.cs
- ScrollBarRenderer.cs
- PrintDialogException.cs
- StopStoryboard.cs
- TemplateInstanceAttribute.cs
- TextViewSelectionProcessor.cs
- CustomAssemblyResolver.cs
- FixedPageStructure.cs
- DataConnectionHelper.cs
- GridViewCommandEventArgs.cs
- ManifestSignatureInformation.cs
- FrameDimension.cs
- Rotation3DKeyFrameCollection.cs
- OleDbReferenceCollection.cs
- XmlSchemaComplexType.cs
- SqlDataSourceWizardForm.cs
- UnaryNode.cs
- ChangePassword.cs
- ListQueryResults.cs
- Line.cs
- PersistenceMetadataNamespace.cs
- OdbcUtils.cs
- EntityContainerRelationshipSet.cs
- PassportPrincipal.cs
- FontUnit.cs
- PointLight.cs
- IntSecurity.cs
- MailWebEventProvider.cs
- PagerStyle.cs
- DefaultEventAttribute.cs
- DataGridViewImageColumn.cs
- RequiredAttributeAttribute.cs
- MetadataItemEmitter.cs
- WorkflowView.cs
- FormattedTextSymbols.cs
- FixUpCollection.cs
- QueryTaskGroupState.cs
- XmlSchemaException.cs
- FormatSettings.cs
- EntityTemplateUserControl.cs
- KnowledgeBase.cs
- DataGridViewImageColumn.cs
- TextRangeEdit.cs
- HtmlForm.cs
- PartialTrustHelpers.cs
- UIPropertyMetadata.cs
- EnumUnknown.cs
- CaseInsensitiveOrdinalStringComparer.cs
- NotSupportedException.cs
- SqlBulkCopyColumnMapping.cs
- LookupNode.cs
- SqlRowUpdatingEvent.cs
- SurrogateDataContract.cs
- TransformerInfo.cs
- ObjectMemberMapping.cs
- LayoutEngine.cs
- CommandPlan.cs
- APCustomTypeDescriptor.cs
- AssemblyBuilder.cs
- XmlUtil.cs
- FixedDocumentPaginator.cs
- MembershipSection.cs
- SHA384Cng.cs
- LoginView.cs
- TypeBuilder.cs
- GCHandleCookieTable.cs
- SynchronizedDispatch.cs
- SoapClientMessage.cs
- FormClosingEvent.cs
- RedistVersionInfo.cs
- SizeValueSerializer.cs
- SimpleWebHandlerParser.cs
- Deflater.cs
- Context.cs
- ExpressionVisitor.cs
- BaseTemplateBuildProvider.cs
- FieldNameLookup.cs
- DrawingBrush.cs
- WinFormsComponentEditor.cs
- Atom10FormatterFactory.cs
- BaseServiceProvider.cs
- WorkflowInstance.cs
- ObsoleteAttribute.cs
- CodeIndexerExpression.cs
- DataGrid.cs
- ScrollProviderWrapper.cs
- FullTextLine.cs
- DataTableReader.cs
- OdbcDataReader.cs
- GridViewCommandEventArgs.cs
- EncoderParameter.cs
- CollectionView.cs
- CellPartitioner.cs
- MsmqTransportReceiveParameters.cs
- ObjectDataSourceSelectingEventArgs.cs
- WebWorkflowRole.cs