Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / QueryInterceptorAttribute.cs / 1305376 / QueryInterceptorAttribute.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Provides a class to decorate query callback methods. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services { using System; using System.Diagnostics; ////// Use this attribute on a DataService method to indicate than this method should be invoked to intercept queries. /// [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)] public sealed class QueryInterceptorAttribute : Attribute { ///Entity set name that the method filters. private readonly string entitySetName; ///Declares a new /// Entity set name that the method intercepts queries for. public QueryInterceptorAttribute(string entitySetName) { this.entitySetName = WebUtil.CheckArgumentNull(entitySetName, "entitySetName"); } ///instance. Entity set name that the method intercepts queries for. 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 query callback methods. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services { using System; using System.Diagnostics; ////// Use this attribute on a DataService method to indicate than this method should be invoked to intercept queries. /// [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)] public sealed class QueryInterceptorAttribute : Attribute { ///Entity set name that the method filters. private readonly string entitySetName; ///Declares a new /// Entity set name that the method intercepts queries for. public QueryInterceptorAttribute(string entitySetName) { this.entitySetName = WebUtil.CheckArgumentNull(entitySetName, "entitySetName"); } ///instance. Entity set name that the method intercepts queries for. 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
- FlatButtonAppearance.cs
- PersistenceException.cs
- XamlToRtfWriter.cs
- TimerElapsedEvenArgs.cs
- UdpSocket.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- HtmlValidatorAdapter.cs
- EnumerableValidator.cs
- XmlAttributeOverrides.cs
- IisTraceListener.cs
- Exceptions.cs
- EntityKeyElement.cs
- HeaderUtility.cs
- XmlWrappingReader.cs
- ParagraphResult.cs
- MethodSet.cs
- rsa.cs
- FlatButtonAppearance.cs
- NGCPageContentCollectionSerializerAsync.cs
- IMembershipProvider.cs
- XmlEntity.cs
- XmlUTF8TextWriter.cs
- PolicyException.cs
- TextTreeTextNode.cs
- FastEncoder.cs
- AxHost.cs
- MailMessage.cs
- ClientData.cs
- SimpleFileLog.cs
- ADRoleFactoryConfiguration.cs
- AutoGeneratedField.cs
- SQLBytesStorage.cs
- CommandBinding.cs
- RemoteWebConfigurationHostStream.cs
- AddInBase.cs
- DataGridGeneralPage.cs
- SmtpDigestAuthenticationModule.cs
- PlanCompilerUtil.cs
- EncodingTable.cs
- WindowsHyperlink.cs
- CommandConverter.cs
- CacheManager.cs
- PngBitmapDecoder.cs
- NullableFloatMinMaxAggregationOperator.cs
- MultipartContentParser.cs
- ConfigurationLocation.cs
- GestureRecognizer.cs
- TreeViewItem.cs
- DiscriminatorMap.cs
- UiaCoreProviderApi.cs
- TagPrefixCollection.cs
- PassportAuthenticationEventArgs.cs
- XhtmlConformanceSection.cs
- QuaternionRotation3D.cs
- ColumnTypeConverter.cs
- WindowsPen.cs
- ObjectDataSourceStatusEventArgs.cs
- JsonFormatGeneratorStatics.cs
- LinkConverter.cs
- CreateDataSourceDialog.cs
- CodeCatchClauseCollection.cs
- MailWriter.cs
- GroupJoinQueryOperator.cs
- ChildChangedEventArgs.cs
- PasswordRecovery.cs
- CalendarDay.cs
- SubMenuStyle.cs
- CombinedGeometry.cs
- ExpressionVisitorHelpers.cs
- XLinq.cs
- WinInet.cs
- BuildProvidersCompiler.cs
- TextFormattingConverter.cs
- RegexCharClass.cs
- SecurityElement.cs
- TimerElapsedEvenArgs.cs
- FactoryMaker.cs
- Compilation.cs
- TextParentUndoUnit.cs
- NullableIntMinMaxAggregationOperator.cs
- ProtocolsConfigurationHandler.cs
- NativeMethods.cs
- NamedPipeDuplicateContext.cs
- AdPostCacheSubstitution.cs
- GetPageNumberCompletedEventArgs.cs
- PieceDirectory.cs
- WorkItem.cs
- HwndProxyElementProvider.cs
- SizeIndependentAnimationStorage.cs
- XhtmlBasicObjectListAdapter.cs
- CodeArrayIndexerExpression.cs
- MultiAsyncResult.cs
- ImageClickEventArgs.cs
- DisposableCollectionWrapper.cs
- Automation.cs
- SmtpFailedRecipientsException.cs
- HostAdapter.cs
- AnnotationComponentChooser.cs
- XmlCountingReader.cs
- DocumentGridContextMenu.cs