Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- LineServices.cs
- RMPermissions.cs
- DocumentViewer.cs
- DbTypeMap.cs
- PublisherIdentityPermission.cs
- FtpWebRequest.cs
- ConfigurationException.cs
- EditorPartChrome.cs
- LocatorGroup.cs
- SmiXetterAccessMap.cs
- XmlDesigner.cs
- ProxyHelper.cs
- InvalidAsynchronousStateException.cs
- CustomValidator.cs
- BufferModeSettings.cs
- CaseExpr.cs
- QuaternionValueSerializer.cs
- COM2FontConverter.cs
- Geometry.cs
- Stroke2.cs
- ToolStripSplitButton.cs
- SymLanguageType.cs
- Decoder.cs
- FindProgressChangedEventArgs.cs
- AutomationPatternInfo.cs
- SchemaObjectWriter.cs
- _CommandStream.cs
- PathStreamGeometryContext.cs
- UITypeEditors.cs
- TextOutput.cs
- _ChunkParse.cs
- PlanCompiler.cs
- PenContexts.cs
- SafeFileMapViewHandle.cs
- SqlExpander.cs
- PersistencePipeline.cs
- SchemaTableColumn.cs
- ErrorsHelper.cs
- Line.cs
- Rect3D.cs
- RemoteWebConfigurationHostServer.cs
- DesignerWidgets.cs
- StandardCommands.cs
- DataGridViewColumn.cs
- GridViewSortEventArgs.cs
- HttpRawResponse.cs
- ECDsa.cs
- ResourceManager.cs
- MeshGeometry3D.cs
- PropertyToken.cs
- SessionConnectionReader.cs
- AutomationPatternInfo.cs
- DataTableNewRowEvent.cs
- InfoCardKeyedHashAlgorithm.cs
- TraceListeners.cs
- MessageDesigner.cs
- XmlSchemaAppInfo.cs
- BooleanProjectedSlot.cs
- HtmlSelect.cs
- TreeNodeCollection.cs
- PersonalizationEntry.cs
- ScriptResourceAttribute.cs
- PrintingPermissionAttribute.cs
- CultureTableRecord.cs
- IMembershipProvider.cs
- DoubleAnimation.cs
- TabOrder.cs
- PropertyStore.cs
- GeneralTransformCollection.cs
- _IPv4Address.cs
- SelectionPattern.cs
- SqlDataReader.cs
- X509Certificate.cs
- AccessedThroughPropertyAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- EventDescriptor.cs
- Visual.cs
- GridEntry.cs
- Win32Interop.cs
- TransformCollection.cs
- GlyphRun.cs
- panel.cs
- ProviderUtil.cs
- NonBatchDirectoryCompiler.cs
- ComponentManagerBroker.cs
- VirtualPathUtility.cs
- DesignerValidatorAdapter.cs
- ToolStripMenuItem.cs
- SatelliteContractVersionAttribute.cs
- UnsafeNativeMethods.cs
- DSGeneratorProblem.cs
- SchemaInfo.cs
- DeleteBookmarkScope.cs
- WindowsListViewGroup.cs
- ActiveXContainer.cs
- XmlTextEncoder.cs
- WeakRefEnumerator.cs
- PeerObject.cs
- XmlQualifiedName.cs
- SchemaType.cs