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
- PerformanceCounters.cs
- MulticastDelegate.cs
- VisualBasicSettingsHandler.cs
- ExpressionEditor.cs
- RepeaterCommandEventArgs.cs
- BinaryObjectReader.cs
- WebControlsSection.cs
- DaylightTime.cs
- SqlPersonalizationProvider.cs
- LOSFormatter.cs
- RoleService.cs
- SignatureToken.cs
- EmbeddedObject.cs
- Wizard.cs
- DbgCompiler.cs
- ExpandableObjectConverter.cs
- SQLDoubleStorage.cs
- Wildcard.cs
- ComplexLine.cs
- UnorderedHashRepartitionStream.cs
- Flattener.cs
- bindurihelper.cs
- XmlSchemaAttributeGroup.cs
- StackBuilderSink.cs
- BinaryWriter.cs
- SocketException.cs
- ScrollPattern.cs
- RepeatInfo.cs
- ExpressionBuilder.cs
- SoundPlayer.cs
- GetResponse.cs
- OleDbPermission.cs
- TextChangedEventArgs.cs
- OleDbParameterCollection.cs
- SecurityRuntime.cs
- SByte.cs
- BuildResultCache.cs
- GregorianCalendarHelper.cs
- UIntPtr.cs
- DataGridViewCellValidatingEventArgs.cs
- EventLogPropertySelector.cs
- CultureInfoConverter.cs
- Axis.cs
- DataView.cs
- FormCollection.cs
- Pen.cs
- CodePropertyReferenceExpression.cs
- SqlConnectionStringBuilder.cs
- PipeSecurity.cs
- NumericUpDownAcceleration.cs
- SqlRowUpdatingEvent.cs
- ApplicationServiceManager.cs
- CodeCommentStatementCollection.cs
- Constants.cs
- ManagementPath.cs
- SqlRemoveConstantOrderBy.cs
- ValidationHelper.cs
- Animatable.cs
- SelectionRangeConverter.cs
- CommandLineParser.cs
- DataContractSerializerSection.cs
- MgmtConfigurationRecord.cs
- XmlQueryContext.cs
- DetailsViewUpdateEventArgs.cs
- Button.cs
- ArrayList.cs
- TransactionFlowProperty.cs
- ThrowHelper.cs
- MailSettingsSection.cs
- SystemIPAddressInformation.cs
- XmlUtf8RawTextWriter.cs
- ComMethodElementCollection.cs
- Pkcs7Signer.cs
- SafeFileMappingHandle.cs
- ModelTreeEnumerator.cs
- TagMapInfo.cs
- XamlReaderConstants.cs
- BitmapMetadataEnumerator.cs
- XmlCodeExporter.cs
- OutputCacheModule.cs
- WCFModelStrings.Designer.cs
- BitmapEffectDrawingContextState.cs
- ComponentDispatcherThread.cs
- CommunicationObject.cs
- MediaTimeline.cs
- MappingException.cs
- SHA1.cs
- MemberListBinding.cs
- ConstNode.cs
- DispatcherExceptionFilterEventArgs.cs
- RoutedCommand.cs
- ScrollContentPresenter.cs
- RadialGradientBrush.cs
- Line.cs
- WindowsSolidBrush.cs
- FixedTextView.cs
- CodeAccessSecurityEngine.cs
- DecoderNLS.cs
- WebPartConnectionsEventArgs.cs
- NavigationService.cs