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
- MultiByteCodec.cs
- DataError.cs
- Accessors.cs
- EdgeProfileValidation.cs
- TypedOperationInfo.cs
- ConfigurationElementCollection.cs
- IdentityHolder.cs
- TextViewSelectionProcessor.cs
- UserNameSecurityToken.cs
- DrawListViewSubItemEventArgs.cs
- DataGridViewRowStateChangedEventArgs.cs
- ImageAttributes.cs
- SecurityHeaderTokenResolver.cs
- HatchBrush.cs
- InternalTypeHelper.cs
- UserControlDocumentDesigner.cs
- ComplusEndpointConfigContainer.cs
- LocationUpdates.cs
- BrushConverter.cs
- CryptoHelper.cs
- DateTimeFormatInfo.cs
- DefaultHttpHandler.cs
- AnnotationMap.cs
- Brushes.cs
- UInt64Converter.cs
- EntityCommand.cs
- WindowsFont.cs
- SecurityPermission.cs
- ScrollChrome.cs
- X509AudioLogo.cs
- ImageCodecInfoPrivate.cs
- TypeReference.cs
- XmlEntity.cs
- Variable.cs
- AlphabeticalEnumConverter.cs
- ResourceContainer.cs
- ToolStripContentPanel.cs
- _PooledStream.cs
- ContextQuery.cs
- XmlNavigatorFilter.cs
- panel.cs
- TCPListener.cs
- WinOEToolBoxItem.cs
- BlobPersonalizationState.cs
- COM2EnumConverter.cs
- XmlIlVisitor.cs
- ExtendedProtectionPolicy.cs
- XmlComment.cs
- ThreadInterruptedException.cs
- BuildResultCache.cs
- RecognizedPhrase.cs
- Font.cs
- ProtocolReflector.cs
- XmlSchemaComplexType.cs
- BigInt.cs
- XamlFigureLengthSerializer.cs
- UndoEngine.cs
- SpellCheck.cs
- _LoggingObject.cs
- _WebProxyDataBuilder.cs
- DropDownButton.cs
- ProgressBar.cs
- OracleException.cs
- Enlistment.cs
- HttpAsyncResult.cs
- BehaviorEditorPart.cs
- StreamWithDictionary.cs
- ToolboxItemImageConverter.cs
- ComplexTypeEmitter.cs
- NullEntityWrapper.cs
- BitmapSourceSafeMILHandle.cs
- MethodCallTranslator.cs
- TypeReference.cs
- Int32Rect.cs
- Scene3D.cs
- EncryptedPackage.cs
- relpropertyhelper.cs
- QuerySelectOp.cs
- TextTreeUndo.cs
- ContextProperty.cs
- FileSystemWatcher.cs
- InheritablePropertyChangeInfo.cs
- ActivationWorker.cs
- FlowDecisionLabelFeature.cs
- StretchValidation.cs
- MultiView.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ObjectSet.cs
- HTMLTextWriter.cs
- DelayedRegex.cs
- VectorCollectionValueSerializer.cs
- DictionaryContent.cs
- StrokeSerializer.cs
- CustomErrorCollection.cs
- VisualCollection.cs
- PropertyMapper.cs
- PropagatorResult.cs
- ClientSection.cs
- ReferentialConstraint.cs
- Dump.cs