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
- DataColumnPropertyDescriptor.cs
- ImageListUtils.cs
- BinaryNode.cs
- XamlToRtfWriter.cs
- _BufferOffsetSize.cs
- CheckBox.cs
- CategoriesDocumentFormatter.cs
- mil_sdk_version.cs
- DataGridViewButtonCell.cs
- AuthenticationConfig.cs
- BamlMapTable.cs
- IPAddress.cs
- MailMessageEventArgs.cs
- CellLabel.cs
- AttributeQuery.cs
- ListDataHelper.cs
- MonthCalendarDesigner.cs
- EntityConnectionStringBuilder.cs
- MgmtConfigurationRecord.cs
- RegexCompiler.cs
- CalendarData.cs
- GridView.cs
- Input.cs
- KeyValuePair.cs
- X509CertificateStore.cs
- XmlSerializationWriter.cs
- Item.cs
- BindingContext.cs
- SqlStatistics.cs
- TextServicesHost.cs
- SimpleMailWebEventProvider.cs
- PermissionToken.cs
- DynamicDocumentPaginator.cs
- TakeQueryOptionExpression.cs
- XsltArgumentList.cs
- XamlSerializerUtil.cs
- ListItemViewAttribute.cs
- _AutoWebProxyScriptEngine.cs
- RepeaterItemEventArgs.cs
- MimeMapping.cs
- CacheDict.cs
- EncoderParameter.cs
- StrokeFIndices.cs
- Matrix3D.cs
- ReflectTypeDescriptionProvider.cs
- SemanticTag.cs
- WebSysDisplayNameAttribute.cs
- MenuEventArgs.cs
- XmlSchemaExternal.cs
- DataColumnChangeEvent.cs
- TreeViewImageKeyConverter.cs
- SecUtil.cs
- IndividualDeviceConfig.cs
- CodeNamespaceCollection.cs
- EntityDataReader.cs
- BypassElementCollection.cs
- DesignTimeDataBinding.cs
- UIPropertyMetadata.cs
- NullableConverter.cs
- RelationshipSet.cs
- SignatureHelper.cs
- CompositionTarget.cs
- SAPIEngineTypes.cs
- AxHost.cs
- Label.cs
- FlowLayoutSettings.cs
- Button.cs
- RestClientProxyHandler.cs
- MessageCredentialType.cs
- ProxySimple.cs
- QuaternionAnimation.cs
- WebPartCollection.cs
- IndentTextWriter.cs
- ButtonChrome.cs
- SingleResultAttribute.cs
- MatrixTransform3D.cs
- SafeLibraryHandle.cs
- WebPartExportVerb.cs
- _Events.cs
- DataFormat.cs
- TableDetailsRow.cs
- SecurityContextSecurityTokenResolver.cs
- TextRangeEditTables.cs
- WindowInteropHelper.cs
- CalculatedColumn.cs
- HttpCookie.cs
- RawKeyboardInputReport.cs
- ObjectAssociationEndMapping.cs
- ObjectCloneHelper.cs
- VersionedStream.cs
- HttpSessionStateWrapper.cs
- ScaleTransform3D.cs
- EventLogLink.cs
- HebrewNumber.cs
- AnnouncementSendsAsyncResult.cs
- DrawingContextWalker.cs
- ExtensionSimplifierMarkupObject.cs
- HostedBindingBehavior.cs
- NumberFunctions.cs
- ConsumerConnectionPoint.cs