Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / ChangeInterceptorAttribute.cs / 1305376 / 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 /// Name of entity set that the method intercepts changes to. public ChangeInterceptorAttribute(string entitySetName) { if (entitySetName == null) { throw Error.ArgumentNull("entitySetName"); } this.entitySetName = entitySetName; } ///instance. 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 /// Name of entity set that the method intercepts changes to. public ChangeInterceptorAttribute(string entitySetName) { if (entitySetName == null) { throw Error.ArgumentNull("entitySetName"); } this.entitySetName = entitySetName; } ///instance. 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
- HttpRuntime.cs
- MgmtResManager.cs
- RegexCompilationInfo.cs
- TypedReference.cs
- GridProviderWrapper.cs
- SoapCodeExporter.cs
- GeneralTransform3DGroup.cs
- SizeLimitedCache.cs
- Sql8ConformanceChecker.cs
- SourceLineInfo.cs
- NamespaceEmitter.cs
- PartialCachingAttribute.cs
- AdornedElementPlaceholder.cs
- ClientFormsAuthenticationCredentials.cs
- SettingsPropertyValueCollection.cs
- HttpAsyncResult.cs
- ConstraintEnumerator.cs
- RangeValuePatternIdentifiers.cs
- MessageAction.cs
- DetailsViewUpdateEventArgs.cs
- XmlnsDictionary.cs
- XmlDataDocument.cs
- CompositeFontParser.cs
- MobileFormsAuthentication.cs
- SynchronizationLockException.cs
- Attribute.cs
- SqlLiftIndependentRowExpressions.cs
- sqlmetadatafactory.cs
- CommentAction.cs
- MDIWindowDialog.cs
- ServiceThrottlingBehavior.cs
- TextFindEngine.cs
- BooleanStorage.cs
- MultipleViewProviderWrapper.cs
- AQNBuilder.cs
- MultiView.cs
- DecimalFormatter.cs
- ScrollBarAutomationPeer.cs
- StdRegProviderWrapper.cs
- IssuedTokenClientCredential.cs
- _Win32.cs
- PopupRootAutomationPeer.cs
- NamedObject.cs
- Message.cs
- ColorTranslator.cs
- AudioFormatConverter.cs
- VirtualPathUtility.cs
- IIS7UserPrincipal.cs
- CompiledAction.cs
- ProfilePropertySettingsCollection.cs
- KeyBinding.cs
- ChangeTracker.cs
- CSharpCodeProvider.cs
- MessageDecoder.cs
- TiffBitmapEncoder.cs
- DBNull.cs
- ContainerSelectorGlyph.cs
- ConfigurationStrings.cs
- RequestQueue.cs
- iisPickupDirectory.cs
- BooleanFacetDescriptionElement.cs
- XmlSchemaGroup.cs
- SessionEndedEventArgs.cs
- EventLogger.cs
- OracleConnectionString.cs
- XmlNamespaceDeclarationsAttribute.cs
- PathFigure.cs
- ServiceContractGenerator.cs
- MissingMethodException.cs
- ItemCheckedEvent.cs
- ChannelManagerBase.cs
- ByeOperationCD1AsyncResult.cs
- DrawingState.cs
- MailAddressCollection.cs
- Rotation3DKeyFrameCollection.cs
- AddInDeploymentState.cs
- StyleCollection.cs
- ResetableIterator.cs
- GradientStopCollection.cs
- CodeAttributeArgumentCollection.cs
- DocumentApplication.cs
- WindowsEditBox.cs
- UiaCoreTypesApi.cs
- SiteMapDataSource.cs
- PartialToken.cs
- ScrollChrome.cs
- AdditionalEntityFunctions.cs
- SiteOfOriginPart.cs
- FormsAuthenticationModule.cs
- SystemThemeKey.cs
- SynchronizationContextHelper.cs
- SystemInformation.cs
- OletxVolatileEnlistment.cs
- TabItem.cs
- __ConsoleStream.cs
- SiteMapNodeCollection.cs
- BaseUriHelper.cs
- UIElementIsland.cs
- OperationParameterInfo.cs
- EventLogTraceListener.cs