Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FormatVersion.cs
- GZipUtils.cs
- WindowsHyperlink.cs
- UIElementIsland.cs
- ObjectSet.cs
- WorkflowItemPresenter.cs
- GridItemProviderWrapper.cs
- XmlDocumentType.cs
- Misc.cs
- LogAppendAsyncResult.cs
- RectValueSerializer.cs
- WebPartDescription.cs
- RotateTransform.cs
- SafeNativeMethodsOther.cs
- OpenTypeCommon.cs
- Quaternion.cs
- TextSelectionHighlightLayer.cs
- HwndTarget.cs
- ObjectListField.cs
- SystemSounds.cs
- DrawingContextDrawingContextWalker.cs
- SecurityIdentifierElement.cs
- MDIClient.cs
- ManagedIStream.cs
- HostedHttpRequestAsyncResult.cs
- connectionpool.cs
- SchemeSettingElementCollection.cs
- ShapingEngine.cs
- DataGridViewComboBoxCell.cs
- BookmarkCallbackWrapper.cs
- TableLayoutRowStyleCollection.cs
- DbConnectionStringCommon.cs
- UIPermission.cs
- ReadOnlyDictionary.cs
- X509AsymmetricSecurityKey.cs
- SamlAssertion.cs
- FullTextLine.cs
- UnionExpr.cs
- MenuAutomationPeer.cs
- TypeSource.cs
- PrintSystemException.cs
- EasingFunctionBase.cs
- ObjectSecurityT.cs
- GatewayIPAddressInformationCollection.cs
- WebPartManager.cs
- StringSource.cs
- Image.cs
- HttpHandlerAction.cs
- DataGridViewLinkCell.cs
- PathData.cs
- SplitterPanel.cs
- ReadOnlyTernaryTree.cs
- EventWaitHandleSecurity.cs
- EntitySetBaseCollection.cs
- LoginCancelEventArgs.cs
- MinimizableAttributeTypeConverter.cs
- XmlNavigatorStack.cs
- SrgsElementFactoryCompiler.cs
- NamespaceList.cs
- EmptyElement.cs
- ReturnEventArgs.cs
- LeaseManager.cs
- FixedHighlight.cs
- DataGridToolTip.cs
- ImageListImage.cs
- SHA256Managed.cs
- SourceFileInfo.cs
- NullableConverter.cs
- BamlRecordWriter.cs
- LinearGradientBrush.cs
- DataChangedEventManager.cs
- Overlapped.cs
- TransformGroup.cs
- InfoCardProofToken.cs
- TreeNodeEventArgs.cs
- MeshGeometry3D.cs
- SystemPens.cs
- OdbcRowUpdatingEvent.cs
- RegistryKey.cs
- HttpRuntimeSection.cs
- TransportSecurityBindingElement.cs
- DependencyObjectType.cs
- ToolStripGripRenderEventArgs.cs
- XPathAncestorQuery.cs
- AspNetHostingPermission.cs
- ItemsControl.cs
- PlatformCulture.cs
- EtwTrace.cs
- NavigateEvent.cs
- TokenBasedSetEnumerator.cs
- Int64KeyFrameCollection.cs
- ProgressPage.cs
- EditingCoordinator.cs
- PackageRelationshipCollection.cs
- StreamGeometryContext.cs
- WindowsEditBoxRange.cs
- PolygonHotSpot.cs
- StorageBasedPackageProperties.cs
- RegexGroupCollection.cs
- MissingFieldException.cs