Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWeb / Server / System / Data / Services / ChangeInterceptorAttribute.cs / 1 / ChangeInterceptorAttribute.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Provides a class to decorate change callback methods.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services
{
using System;
using System.Diagnostics;
///
/// Use this attribute on a DataService method to indicate that
/// this method should be invoked with data changes.
///
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public sealed class ChangeInterceptorAttribute : Attribute
{
/// Container name that the method filters.
private readonly string entitySetName;
/// Declares a new instance.
/// Name of entity set that the method intercepts changes to.
public ChangeInterceptorAttribute(string entitySetName)
{
if (entitySetName == null)
{
throw Error.ArgumentNull("entitySetName");
}
this.entitySetName = entitySetName;
}
/// Entity set name that the method intercepts changes to.
public string EntitySetName
{
[DebuggerStepThrough]
get { return this.entitySetName; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Provides a class to decorate change callback methods.
//
//
// @owner [....]
//---------------------------------------------------------------------
namespace System.Data.Services
{
using System;
using System.Diagnostics;
///
/// Use this attribute on a DataService method to indicate that
/// this method should be invoked with data changes.
///
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public sealed class ChangeInterceptorAttribute : Attribute
{
/// Container name that the method filters.
private readonly string entitySetName;
/// Declares a new instance.
/// Name of entity set that the method intercepts changes to.
public ChangeInterceptorAttribute(string entitySetName)
{
if (entitySetName == null)
{
throw Error.ArgumentNull("entitySetName");
}
this.entitySetName = entitySetName;
}
/// Entity set name that the method intercepts changes to.
public string EntitySetName
{
[DebuggerStepThrough]
get { return this.entitySetName; }
}
}
}
// 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
- AssociationEndMember.cs
- GridItemCollection.cs
- StaticExtension.cs
- Model3DGroup.cs
- EdmTypeAttribute.cs
- X509InitiatorCertificateServiceElement.cs
- ControlPropertyNameConverter.cs
- Command.cs
- ImageField.cs
- DynamicDataExtensions.cs
- XmlEntity.cs
- DetailsViewAutoFormat.cs
- BitmapSourceSafeMILHandle.cs
- PinnedBufferMemoryStream.cs
- ColorBlend.cs
- IInstanceContextProvider.cs
- ConfigurationElement.cs
- WizardStepBase.cs
- _UriSyntax.cs
- NameValueConfigurationElement.cs
- StyleXamlParser.cs
- Reference.cs
- HasActivatableWorkflowEvent.cs
- Set.cs
- PropertyManager.cs
- ReadOnlyTernaryTree.cs
- CLRBindingWorker.cs
- LOSFormatter.cs
- NavigateUrlConverter.cs
- DetailsViewDeleteEventArgs.cs
- SolidBrush.cs
- RootBrowserWindow.cs
- DataTableClearEvent.cs
- XMLUtil.cs
- XmlEnumAttribute.cs
- SqlHelper.cs
- SqlCommandBuilder.cs
- DbProviderConfigurationHandler.cs
- PrePrepareMethodAttribute.cs
- TextMarkerSource.cs
- SafeSystemMetrics.cs
- TypeSemantics.cs
- AuthorizationContext.cs
- SafeUserTokenHandle.cs
- DateTimeValueSerializer.cs
- InvokeProviderWrapper.cs
- RootProfilePropertySettingsCollection.cs
- DropShadowEffect.cs
- Asn1IntegerConverter.cs
- UserControlDocumentDesigner.cs
- _LoggingObject.cs
- PictureBox.cs
- CacheHelper.cs
- XmlUrlResolver.cs
- MediaScriptCommandRoutedEventArgs.cs
- FormsAuthenticationTicket.cs
- ClientCultureInfo.cs
- ExternalCalls.cs
- SqlRetyper.cs
- InvalidDataException.cs
- Repeater.cs
- ComponentEditorForm.cs
- FileUtil.cs
- WebPartManager.cs
- FormView.cs
- ModuleBuilder.cs
- SerializationSectionGroup.cs
- GroupBox.cs
- DetailsViewModeEventArgs.cs
- XmlComplianceUtil.cs
- UnmanagedMemoryStream.cs
- BorderGapMaskConverter.cs
- ColumnMapTranslator.cs
- ToolStripItemCollection.cs
- HttpProfileGroupBase.cs
- CodePageUtils.cs
- ByteStreamGeometryContext.cs
- XmlProcessingInstruction.cs
- SignatureDescription.cs
- SqlUdtInfo.cs
- RemoteWebConfigurationHostStream.cs
- EdmItemCollection.cs
- AssemblyCollection.cs
- AuthenticateEventArgs.cs
- XmlDataImplementation.cs
- TextBox.cs
- Part.cs
- EntityConnection.cs
- CommandID.cs
- ValueProviderWrapper.cs
- Msec.cs
- DataGridItemCollection.cs
- CompressionTracing.cs
- TransactionTraceIdentifier.cs
- WebConfigurationHostFileChange.cs
- FileDialog_Vista_Interop.cs
- Translator.cs
- ReferentialConstraint.cs
- MessagePropertyDescriptionCollection.cs
- HtmlMeta.cs