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
- BrushConverter.cs
- FileCodeGroup.cs
- QuaternionAnimation.cs
- InputProcessorProfilesLoader.cs
- webeventbuffer.cs
- InProcStateClientManager.cs
- CurrencyManager.cs
- ErrorView.xaml.cs
- XmlChildNodes.cs
- RecognizedPhrase.cs
- EmbeddedMailObjectsCollection.cs
- LocalFileSettingsProvider.cs
- Int32Collection.cs
- TextBox.cs
- NeedSkipTokenVisitor.cs
- SamlAdvice.cs
- SwitchExpression.cs
- SessionState.cs
- ListViewContainer.cs
- AmbientLight.cs
- OleServicesContext.cs
- TextEndOfParagraph.cs
- ObservableCollection.cs
- ToolStripDropDownButton.cs
- DesignTimeHTMLTextWriter.cs
- ConditionalBranch.cs
- RenderOptions.cs
- TextEvent.cs
- JoinGraph.cs
- DependencyObject.cs
- BuildProvider.cs
- WebPartUtil.cs
- SchemaEntity.cs
- IIS7UserPrincipal.cs
- TableLayoutColumnStyleCollection.cs
- PerformanceCountersElement.cs
- RequestQueryProcessor.cs
- TextRunProperties.cs
- ObjectQueryState.cs
- ProgramPublisher.cs
- TextEditorCharacters.cs
- SamlAction.cs
- TransformerInfoCollection.cs
- DateTimeFormatInfoScanner.cs
- CodeConstructor.cs
- GetWinFXPath.cs
- MultipartContentParser.cs
- SafeRightsManagementSessionHandle.cs
- SqlFactory.cs
- XsdCachingReader.cs
- FileDialogCustomPlace.cs
- WebAdminConfigurationHelper.cs
- Message.cs
- RectValueSerializer.cs
- AssemblyCacheEntry.cs
- X509Certificate2.cs
- LinkedDataMemberFieldEditor.cs
- TrackBar.cs
- EditorPartChrome.cs
- EntityDataSourceContextCreatedEventArgs.cs
- InlinedAggregationOperatorEnumerator.cs
- CommandEventArgs.cs
- CookieParameter.cs
- PageFunction.cs
- ComIntegrationManifestGenerator.cs
- ConfigurationValue.cs
- SystemWebSectionGroup.cs
- SeparatorAutomationPeer.cs
- FileDialogPermission.cs
- HostingEnvironmentSection.cs
- WebReferenceOptions.cs
- DataGridViewRowHeaderCell.cs
- RestHandlerFactory.cs
- TagNameToTypeMapper.cs
- DbQueryCommandTree.cs
- AsyncSerializedWorker.cs
- CreateUserWizard.cs
- EntityDataSourceContainerNameItem.cs
- InstallerTypeAttribute.cs
- XmlSchemaSimpleContentRestriction.cs
- DataGridViewBindingCompleteEventArgs.cs
- NullableLongMinMaxAggregationOperator.cs
- OrderedDictionary.cs
- ProfileSettingsCollection.cs
- Stacktrace.cs
- NullNotAllowedCollection.cs
- Stream.cs
- NominalTypeEliminator.cs
- InterleavedZipPartStream.cs
- TextTreeUndoUnit.cs
- TraceUtility.cs
- ProviderConnectionPoint.cs
- HttpVersion.cs
- DataColumnPropertyDescriptor.cs
- PageAdapter.cs
- XmlSchemaValidator.cs
- UpdateTracker.cs
- RealProxy.cs
- CanonicalFormWriter.cs
- Image.cs