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
- SolidColorBrush.cs
- FunctionQuery.cs
- PropertyMapper.cs
- PageMediaSize.cs
- ReadContentAsBinaryHelper.cs
- CapabilitiesRule.cs
- CellConstantDomain.cs
- CodeGeneratorAttribute.cs
- AsymmetricAlgorithm.cs
- ConfigXmlCDataSection.cs
- OdbcInfoMessageEvent.cs
- HtmlForm.cs
- CubicEase.cs
- MSAAEventDispatcher.cs
- ConfigurationStrings.cs
- ClientRuntimeConfig.cs
- connectionpool.cs
- MatrixUtil.cs
- ChunkedMemoryStream.cs
- RoleServiceManager.cs
- DisplayMemberTemplateSelector.cs
- OrCondition.cs
- SubMenuStyleCollection.cs
- WebPartZoneBase.cs
- ImpersonationContext.cs
- ItemContainerProviderWrapper.cs
- CheckBox.cs
- _RequestCacheProtocol.cs
- DesignerResources.cs
- ConstrainedDataObject.cs
- BitmapSizeOptions.cs
- DataGridViewToolTip.cs
- TreeViewCancelEvent.cs
- xdrvalidator.cs
- WebPartConnectionsConnectVerb.cs
- TraceInternal.cs
- CompoundFileStorageReference.cs
- RegistryPermission.cs
- ApplicationId.cs
- TableRowGroup.cs
- PageAsyncTask.cs
- XamlReaderHelper.cs
- ArraySubsetEnumerator.cs
- DesignerExtenders.cs
- MimeTypePropertyAttribute.cs
- FixUpCollection.cs
- FormViewCommandEventArgs.cs
- WindowPattern.cs
- ParameterBinding.cs
- SoapHeaderException.cs
- LambdaCompiler.Logical.cs
- DataTemplateKey.cs
- QuotedPrintableStream.cs
- ResolveMatchesMessageCD1.cs
- WebPartAuthorizationEventArgs.cs
- _NestedMultipleAsyncResult.cs
- StructuredCompositeActivityDesigner.cs
- TypeDescriptionProvider.cs
- CLSCompliantAttribute.cs
- CommonGetThemePartSize.cs
- HtmlTableRowCollection.cs
- HintTextMaxWidthConverter.cs
- ArglessEventHandlerProxy.cs
- ParameterElementCollection.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- XmlParserContext.cs
- AnnotationHighlightLayer.cs
- SpellerHighlightLayer.cs
- ButtonField.cs
- Accessible.cs
- CustomAttributeSerializer.cs
- ManipulationDevice.cs
- remotingproxy.cs
- CodeNamespaceImport.cs
- DataPager.cs
- DefaultHttpHandler.cs
- ChildrenQuery.cs
- _Rfc2616CacheValidators.cs
- HasCopySemanticsAttribute.cs
- AutomationTextAttribute.cs
- CategoryGridEntry.cs
- ApplicationSecurityInfo.cs
- ExternalException.cs
- WindowPatternIdentifiers.cs
- Blend.cs
- ImpersonateTokenRef.cs
- SqlCacheDependency.cs
- SamlDoNotCacheCondition.cs
- ClientConvert.cs
- StateDesignerConnector.cs
- QuarticEase.cs
- EncodingDataItem.cs
- AnnotationService.cs
- Run.cs
- ProviderConnectionPoint.cs
- XmlElement.cs
- ResourceDictionaryCollection.cs
- SafeReversePInvokeHandle.cs
- MenuItemBindingCollection.cs
- _NtlmClient.cs