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
- ImageClickEventArgs.cs
- MemberDescriptor.cs
- UInt16Storage.cs
- HttpsChannelFactory.cs
- WebBrowserDocumentCompletedEventHandler.cs
- NetNamedPipeSecurityMode.cs
- BoundsDrawingContextWalker.cs
- printdlgexmarshaler.cs
- XmlHelper.cs
- ViewGenResults.cs
- XmlSchemaGroup.cs
- ZeroOpNode.cs
- Identifier.cs
- ManagementClass.cs
- Policy.cs
- DocumentsTrace.cs
- SpellCheck.cs
- _ConnectStream.cs
- CacheAxisQuery.cs
- TokenBasedSet.cs
- validation.cs
- AffineTransform3D.cs
- FormViewInsertedEventArgs.cs
- ProxyWebPartManager.cs
- ValidationErrorCollection.cs
- CultureInfo.cs
- DelegateSerializationHolder.cs
- Unit.cs
- SqlDataSourceQueryConverter.cs
- ErrorCodes.cs
- ServiceOperation.cs
- XmlHelper.cs
- CompensationHandlingFilter.cs
- DataFormat.cs
- WorkflowMarkupSerializationManager.cs
- BufferedReadStream.cs
- SimpleTypesSurrogate.cs
- TableItemPattern.cs
- RemotingAttributes.cs
- RegexBoyerMoore.cs
- ListenerServiceInstallComponent.cs
- XPathAxisIterator.cs
- Propagator.cs
- ToolStripDropDownItem.cs
- HistoryEventArgs.cs
- EntityClassGenerator.cs
- WebScriptMetadataInstanceContextProvider.cs
- SqlNotificationRequest.cs
- TraceContextEventArgs.cs
- FormatterServices.cs
- PointValueSerializer.cs
- XmlSchemaGroup.cs
- FormViewCommandEventArgs.cs
- LinkGrep.cs
- MessageSecurityProtocolFactory.cs
- RegexTree.cs
- Control.cs
- DataReaderContainer.cs
- VirtualPathProvider.cs
- AstTree.cs
- ReturnValue.cs
- WebErrorHandler.cs
- basenumberconverter.cs
- FunctionParameter.cs
- Button.cs
- UmAlQuraCalendar.cs
- Pen.cs
- TypefaceMap.cs
- LambdaCompiler.ControlFlow.cs
- TTSEngineTypes.cs
- ReferenceConverter.cs
- TextElementEnumerator.cs
- Int16AnimationBase.cs
- DataTableNewRowEvent.cs
- CompositeCollectionView.cs
- Empty.cs
- SmiEventSink.cs
- ConfigXmlWhitespace.cs
- Vector3DAnimation.cs
- NullableIntAverageAggregationOperator.cs
- DictionaryEntry.cs
- ReadOnlyHierarchicalDataSource.cs
- WindowsPen.cs
- DrawingContextWalker.cs
- GraphicsPathIterator.cs
- BitmapImage.cs
- MarkupCompilePass1.cs
- activationcontext.cs
- ParseElementCollection.cs
- Boolean.cs
- FixedSOMPage.cs
- PersonalizationEntry.cs
- UIntPtr.cs
- RotationValidation.cs
- TraceContextEventArgs.cs
- SqlCacheDependencySection.cs
- RepeatButtonAutomationPeer.cs
- StreamingContext.cs
- XsltArgumentList.cs
- EntityDataSourceDesigner.cs