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 /// 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
- MobileContainerDesigner.cs
- XmlNodeComparer.cs
- TextDecorationCollectionConverter.cs
- InkCollectionBehavior.cs
- NameValueCollection.cs
- XmlSerializationGeneratedCode.cs
- SatelliteContractVersionAttribute.cs
- VsPropertyGrid.cs
- PeerNameRecord.cs
- ExtenderControl.cs
- ExpressionBuilderContext.cs
- WinInetCache.cs
- Highlights.cs
- CollectionChange.cs
- UnsafeNativeMethodsMilCoreApi.cs
- VisualStateManager.cs
- ItemsControl.cs
- CalloutQueueItem.cs
- SymmetricCryptoHandle.cs
- Rfc2898DeriveBytes.cs
- SectionInformation.cs
- MatrixValueSerializer.cs
- StreamWriter.cs
- DataGridViewComboBoxColumn.cs
- FunctionNode.cs
- SystemIPGlobalStatistics.cs
- PeerContact.cs
- SqlDataSourceSelectingEventArgs.cs
- Int64.cs
- ProtocolsConfiguration.cs
- _AutoWebProxyScriptEngine.cs
- PathStreamGeometryContext.cs
- ApplicationHost.cs
- AccessControlEntry.cs
- HtmlInputSubmit.cs
- OleDbEnumerator.cs
- WebPart.cs
- QilStrConcat.cs
- sapiproxy.cs
- IntegrationExceptionEventArgs.cs
- CompensationDesigner.cs
- HintTextConverter.cs
- Pts.cs
- _RequestCacheProtocol.cs
- CqlLexerHelpers.cs
- DurableOperationContext.cs
- ConfigurationException.cs
- PersonalizableTypeEntry.cs
- _NestedMultipleAsyncResult.cs
- RawStylusSystemGestureInputReport.cs
- TerminatorSinks.cs
- SqlSelectClauseBuilder.cs
- ControlCachePolicy.cs
- Menu.cs
- AstTree.cs
- rsa.cs
- Popup.cs
- IFlowDocumentViewer.cs
- HtmlSelect.cs
- HttpWebRequest.cs
- FormatSettings.cs
- RelatedPropertyManager.cs
- fixedPageContentExtractor.cs
- ProcessHostMapPath.cs
- NavigationService.cs
- ToolboxItemFilterAttribute.cs
- CqlGenerator.cs
- HGlobalSafeHandle.cs
- ParallelLoopState.cs
- ToolZone.cs
- SafeCryptHandles.cs
- wmiutil.cs
- TablePattern.cs
- TextBoxBase.cs
- CompilerLocalReference.cs
- BuildProviderCollection.cs
- WorkItem.cs
- BinaryObjectWriter.cs
- Mutex.cs
- ReferentialConstraint.cs
- precedingquery.cs
- PrePostDescendentsWalker.cs
- UnhandledExceptionEventArgs.cs
- DataKeyArray.cs
- QueryLifecycle.cs
- WindowsListBox.cs
- _ChunkParse.cs
- SingleStorage.cs
- MutexSecurity.cs
- Internal.cs
- Lasso.cs
- CodeBlockBuilder.cs
- SafeNativeMethods.cs
- ClassValidator.cs
- ErrorFormatter.cs
- WebServiceTypeData.cs
- SharingService.cs
- TextRangeAdaptor.cs
- State.cs
- StopStoryboard.cs