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
- ConfigurationPropertyCollection.cs
- ImpersonateTokenRef.cs
- EdmRelationshipRoleAttribute.cs
- UpdateManifestForBrowserApplication.cs
- StreamWriter.cs
- DbProviderFactories.cs
- NumericPagerField.cs
- ControlEvent.cs
- BooleanProjectedSlot.cs
- ParagraphResult.cs
- DropDownButton.cs
- EntityProviderServices.cs
- RichTextBoxAutomationPeer.cs
- RegexCharClass.cs
- WindowsToolbar.cs
- columnmapkeybuilder.cs
- UpdateTracker.cs
- WindowsSysHeader.cs
- SqlWriter.cs
- ReflectionTypeLoadException.cs
- CompressionTransform.cs
- ObjectSet.cs
- ResXResourceSet.cs
- WinEventTracker.cs
- TransformCollection.cs
- WebBrowserSiteBase.cs
- XmlIgnoreAttribute.cs
- MobileUserControlDesigner.cs
- XsltSettings.cs
- OleDbSchemaGuid.cs
- CompilerGlobalScopeAttribute.cs
- XPathConvert.cs
- TracedNativeMethods.cs
- InvalidateEvent.cs
- ToolStripOverflowButton.cs
- BitmapEffectOutputConnector.cs
- ProtectedConfiguration.cs
- EntityDataSourceViewSchema.cs
- RawStylusInputCustomDataList.cs
- MetadataSource.cs
- IisHelper.cs
- JulianCalendar.cs
- RequestQueryProcessor.cs
- Image.cs
- VisualBrush.cs
- UnionExpr.cs
- XmlImplementation.cs
- SerialPinChanges.cs
- Misc.cs
- CustomAttribute.cs
- ExtendedProperty.cs
- ProcessManager.cs
- x509store.cs
- MultipleViewProviderWrapper.cs
- ScriptServiceAttribute.cs
- NameValueFileSectionHandler.cs
- CodeArrayCreateExpression.cs
- X509Extension.cs
- BaseValidatorDesigner.cs
- WebPartManager.cs
- TextRunProperties.cs
- DebuggerService.cs
- StateWorkerRequest.cs
- XmlNamespaceMapping.cs
- SBCSCodePageEncoding.cs
- StringResourceManager.cs
- Base64Stream.cs
- UnsafeNativeMethods.cs
- EventLog.cs
- ReadOnlyDictionary.cs
- Latin1Encoding.cs
- WorkItem.cs
- MobileCategoryAttribute.cs
- ObjectDataSourceEventArgs.cs
- TimelineCollection.cs
- TextSelection.cs
- ChannelServices.cs
- StreamGeometryContext.cs
- SQLInt64Storage.cs
- RowToParametersTransformer.cs
- WebPartEventArgs.cs
- DataGridView.cs
- DropDownButton.cs
- UntrustedRecipientException.cs
- UxThemeWrapper.cs
- GridViewCommandEventArgs.cs
- StyleXamlParser.cs
- C14NUtil.cs
- OracleNumber.cs
- GlobalizationSection.cs
- XmlUtilWriter.cs
- TextDecorationCollection.cs
- DataViewSetting.cs
- PopupRootAutomationPeer.cs
- DesignerCommandSet.cs
- ConnectionConsumerAttribute.cs
- PropertyGridDesigner.cs
- _LazyAsyncResult.cs
- xml.cs
- DragCompletedEventArgs.cs