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
- Tag.cs
- RegistryPermission.cs
- SocketSettings.cs
- StreamingContext.cs
- Queue.cs
- StrokeNodeData.cs
- SqlCachedBuffer.cs
- DependentList.cs
- GestureRecognizer.cs
- XPathSelectionIterator.cs
- SelfSignedCertificate.cs
- Animatable.cs
- RelationshipManager.cs
- VisualBasicSettings.cs
- FileLevelControlBuilderAttribute.cs
- TrustManagerMoreInformation.cs
- CheckBoxPopupAdapter.cs
- CounterCreationDataCollection.cs
- PageTextBox.cs
- ReaderOutput.cs
- sqlstateclientmanager.cs
- HtmlValidatorAdapter.cs
- SafeRightsManagementHandle.cs
- CurrentTimeZone.cs
- SecurityContext.cs
- GridViewCellAutomationPeer.cs
- ZipIOExtraField.cs
- MailAddress.cs
- SafeRightsManagementHandle.cs
- HtmlEmptyTagControlBuilder.cs
- XmlAnyAttributeAttribute.cs
- TextTreeTextNode.cs
- DefaultPropertyAttribute.cs
- CookieParameter.cs
- Resources.Designer.cs
- CodeSubDirectoriesCollection.cs
- ManualWorkflowSchedulerService.cs
- DependencyObjectType.cs
- NativeMethods.cs
- TemplateAction.cs
- StatusBarDrawItemEvent.cs
- Walker.cs
- CompilationUnit.cs
- TemplatedMailWebEventProvider.cs
- fixedPageContentExtractor.cs
- BufferModeSettings.cs
- InstanceKeyNotReadyException.cs
- OleServicesContext.cs
- XmlWrappingReader.cs
- Pair.cs
- WizardPanelChangingEventArgs.cs
- SharedDp.cs
- Vector3D.cs
- PeerNode.cs
- HtmlToClrEventProxy.cs
- EllipticalNodeOperations.cs
- HandleCollector.cs
- StorageEntitySetMapping.cs
- ValueCollectionParameterReader.cs
- DateTimeParse.cs
- Relationship.cs
- XamlVector3DCollectionSerializer.cs
- UriTemplateClientFormatter.cs
- ObjectParameter.cs
- WebOperationContext.cs
- FontInfo.cs
- DBConnectionString.cs
- SqlCommandBuilder.cs
- WebEventCodes.cs
- ActivityInstance.cs
- ThicknessAnimationUsingKeyFrames.cs
- BrowsableAttribute.cs
- ManagementNamedValueCollection.cs
- ModelTreeEnumerator.cs
- XComponentModel.cs
- CollectionBuilder.cs
- NeutralResourcesLanguageAttribute.cs
- BindingManagerDataErrorEventArgs.cs
- DiscoveryOperationContextExtension.cs
- ProfileManager.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ObjectKeyFrameCollection.cs
- ToolBarPanel.cs
- Interlocked.cs
- XmlLinkedNode.cs
- Suspend.cs
- RawAppCommandInputReport.cs
- SpellerInterop.cs
- ToolStripPanel.cs
- ProxyWebPartConnectionCollection.cs
- TrustManager.cs
- Selection.cs
- MarshalByValueComponent.cs
- BitmapSourceSafeMILHandle.cs
- InvokeMethodActivity.cs
- DataGridViewControlCollection.cs
- InvokeWebService.cs
- EventLogRecord.cs
- SecurityPolicySection.cs
- DataGridViewCellConverter.cs