Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Data / System / Data / SqlClient / SqlNotificationEventArgs.cs / 1 / SqlNotificationEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
// [....]
// [....]
//-----------------------------------------------------------------------------
namespace System.Data.SqlClient {
using System;
using System.ComponentModel;
using System.Collections;
using System.Data;
#if WINFSInternalOnly
internal
#else
public
#endif
class SqlNotificationEventArgs : EventArgs {
private SqlNotificationType _type;
private SqlNotificationInfo _info;
private SqlNotificationSource _source;
public SqlNotificationEventArgs(SqlNotificationType type, SqlNotificationInfo info, SqlNotificationSource source) {
_info = info;
_source = source;
_type = type;
}
public SqlNotificationType Type {
get {
return _type;
}
}
public SqlNotificationInfo Info {
get {
return _info;
}
}
public SqlNotificationSource Source {
get {
return _source;
}
}
internal static SqlNotificationEventArgs NotifyError = new SqlNotificationEventArgs(SqlNotificationType.Subscribe, SqlNotificationInfo.Error, SqlNotificationSource.Object);
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
// [....]
// [....]
//-----------------------------------------------------------------------------
namespace System.Data.SqlClient {
using System;
using System.ComponentModel;
using System.Collections;
using System.Data;
#if WINFSInternalOnly
internal
#else
public
#endif
class SqlNotificationEventArgs : EventArgs {
private SqlNotificationType _type;
private SqlNotificationInfo _info;
private SqlNotificationSource _source;
public SqlNotificationEventArgs(SqlNotificationType type, SqlNotificationInfo info, SqlNotificationSource source) {
_info = info;
_source = source;
_type = type;
}
public SqlNotificationType Type {
get {
return _type;
}
}
public SqlNotificationInfo Info {
get {
return _info;
}
}
public SqlNotificationSource Source {
get {
return _source;
}
}
internal static SqlNotificationEventArgs NotifyError = new SqlNotificationEventArgs(SqlNotificationType.Subscribe, SqlNotificationInfo.Error, SqlNotificationSource.Object);
}
}
// 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
- NameSpaceEvent.cs
- HtmlControl.cs
- SmiEventSink_DeferedProcessing.cs
- RouteTable.cs
- ComplexBindingPropertiesAttribute.cs
- EncodingNLS.cs
- ErrorHandler.cs
- ValueQuery.cs
- SqlDataReaderSmi.cs
- AspCompat.cs
- XmlWrappingWriter.cs
- RectangleConverter.cs
- ParallelTimeline.cs
- FormViewPageEventArgs.cs
- DbConnectionPoolCounters.cs
- SafeArchiveContext.cs
- XhtmlBasicLabelAdapter.cs
- Tracking.cs
- WebSysDisplayNameAttribute.cs
- TemplateControlCodeDomTreeGenerator.cs
- XamlReaderHelper.cs
- SignatureDescription.cs
- ValidationError.cs
- FixUp.cs
- FontTypeConverter.cs
- DrawTreeNodeEventArgs.cs
- ServicePointManagerElement.cs
- ValidationResult.cs
- NamedPipeTransportManager.cs
- milrender.cs
- EventLogPermissionAttribute.cs
- WebPartRestoreVerb.cs
- CombinedGeometry.cs
- BindingList.cs
- ScrollProperties.cs
- MetabaseServerConfig.cs
- PtsCache.cs
- VirtualDirectoryMappingCollection.cs
- WinEventWrap.cs
- ListControl.cs
- Repeater.cs
- XPathDescendantIterator.cs
- AutomationPatternInfo.cs
- TemplateColumn.cs
- NodeInfo.cs
- WebPartEditVerb.cs
- AuthenticationSection.cs
- Splitter.cs
- ClientRoleProvider.cs
- ItemsPresenter.cs
- ActivityPreviewDesigner.cs
- UserValidatedEventArgs.cs
- ZoneIdentityPermission.cs
- OracleBinary.cs
- DiscoveryDocument.cs
- DataContractSerializerSection.cs
- SessionPageStateSection.cs
- SinglePageViewer.cs
- ObjectConverter.cs
- BitmapCacheBrush.cs
- XsltContext.cs
- UndirectedGraph.cs
- ClientSettingsStore.cs
- PrinterUnitConvert.cs
- ClientRuntimeConfig.cs
- ZipIOExtraFieldElement.cs
- ControlDesigner.cs
- GuidConverter.cs
- Grant.cs
- HtmlShimManager.cs
- _Events.cs
- TdsParserSessionPool.cs
- DataGridColumn.cs
- TextComposition.cs
- CellTreeNodeVisitors.cs
- WindowsPrincipal.cs
- MarkupWriter.cs
- ListSourceHelper.cs
- DataStreams.cs
- Substitution.cs
- SqlDataSourceWizardForm.cs
- SymbolUsageManager.cs
- ViewBase.cs
- ScriptHandlerFactory.cs
- ActivityStatusChangeEventArgs.cs
- WindowsSlider.cs
- InheritedPropertyChangedEventArgs.cs
- PaintValueEventArgs.cs
- dbdatarecord.cs
- InvokePatternIdentifiers.cs
- Int32CollectionValueSerializer.cs
- Rules.cs
- ResourceReferenceKeyNotFoundException.cs
- FormatException.cs
- ControlPropertyNameConverter.cs
- SqlRowUpdatedEvent.cs
- DynamicEntity.cs
- DesignerTransaction.cs
- XmlSchemaSimpleContentExtension.cs
- AdPostCacheSubstitution.cs