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
- OleDbCommandBuilder.cs
- Internal.cs
- AutomationProperties.cs
- BoundPropertyEntry.cs
- HtmlGenericControl.cs
- DrawingContextDrawingContextWalker.cs
- CriticalFinalizerObject.cs
- ConfigurationElementProperty.cs
- WindowsToolbarAsMenu.cs
- PeerFlooder.cs
- DeploymentSection.cs
- ExecutedRoutedEventArgs.cs
- EmissiveMaterial.cs
- AsymmetricKeyExchangeDeformatter.cs
- EntityClientCacheEntry.cs
- PinnedBufferMemoryStream.cs
- PerformanceCounterCategory.cs
- KeyFrames.cs
- wgx_commands.cs
- MethodBuilderInstantiation.cs
- XslVisitor.cs
- MimeTypeMapper.cs
- oledbmetadatacolumnnames.cs
- TdsParser.cs
- DataGridViewColumnHeaderCell.cs
- AttachedAnnotationChangedEventArgs.cs
- AVElementHelper.cs
- SecurityTokenSerializer.cs
- MetadataArtifactLoaderCompositeResource.cs
- PassportAuthenticationEventArgs.cs
- DataBinder.cs
- TcpTransportSecurityElement.cs
- Parser.cs
- BitmapSizeOptions.cs
- PolicyManager.cs
- EndOfStreamException.cs
- CompressStream.cs
- ContentValidator.cs
- XPathSingletonIterator.cs
- ClrPerspective.cs
- EmissiveMaterial.cs
- Int16.cs
- ControlTemplate.cs
- ViewEvent.cs
- EntityDataSourceDesigner.cs
- CheckBoxAutomationPeer.cs
- SimplePropertyEntry.cs
- FacetEnabledSchemaElement.cs
- ProviderException.cs
- SafeSecurityHandles.cs
- BulletChrome.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- ClosureBinding.cs
- EntityTypeEmitter.cs
- TableItemStyle.cs
- QuaternionRotation3D.cs
- XmlSchemaObject.cs
- SynchronizationLockException.cs
- Int32Rect.cs
- AssemblyCollection.cs
- TypeConverterHelper.cs
- TableRowCollection.cs
- AvtEvent.cs
- DetailsViewUpdatedEventArgs.cs
- TextSelectionHelper.cs
- LinkUtilities.cs
- parserscommon.cs
- EnvelopedSignatureTransform.cs
- WindowsTokenRoleProvider.cs
- StrongName.cs
- ProtectedConfigurationProviderCollection.cs
- ListItem.cs
- CreateUserWizard.cs
- HtmlTableCellCollection.cs
- RegexWorker.cs
- ControlFilterExpression.cs
- DesignerLoader.cs
- RowCache.cs
- NullExtension.cs
- ErrorHandler.cs
- PerformanceCounterLib.cs
- TextSelectionHighlightLayer.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- SafeEventHandle.cs
- EraserBehavior.cs
- AssemblyResourceLoader.cs
- TemplateBaseAction.cs
- Section.cs
- MetaType.cs
- AutoResetEvent.cs
- ListItemViewControl.cs
- _BasicClient.cs
- SpecularMaterial.cs
- ObjectDataSourceMethodEventArgs.cs
- TogglePattern.cs
- AsyncCompletedEventArgs.cs
- CDSCollectionETWBCLProvider.cs
- QueryOutputWriter.cs
- ProfileEventArgs.cs
- WebPartConnectionsEventArgs.cs