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
- InstallHelper.cs
- DetailsViewCommandEventArgs.cs
- PreviewPrintController.cs
- control.ime.cs
- DBCommandBuilder.cs
- ClosableStream.cs
- DataView.cs
- HttpHandlerActionCollection.cs
- OutputScopeManager.cs
- SQLInt16.cs
- GridItemProviderWrapper.cs
- XmlQueryType.cs
- FontStretch.cs
- HttpServerVarsCollection.cs
- ReadOnlyDataSource.cs
- WindowsComboBox.cs
- SqlBuilder.cs
- EntityWrapperFactory.cs
- MetadataImporterQuotas.cs
- ScaleTransform3D.cs
- TextServicesHost.cs
- XsltLoader.cs
- CodePageEncoding.cs
- BmpBitmapEncoder.cs
- SingleResultAttribute.cs
- Cell.cs
- AttributeAction.cs
- HyperLinkDesigner.cs
- SmiContext.cs
- ObjectResult.cs
- SerialPinChanges.cs
- XmlFormatReaderGenerator.cs
- BitmapMetadataBlob.cs
- StickyNoteHelper.cs
- ObjectStateFormatter.cs
- ArraySet.cs
- Operators.cs
- PassportPrincipal.cs
- SiteMapNodeCollection.cs
- Sql8ExpressionRewriter.cs
- ToolStripDropTargetManager.cs
- TriggerCollection.cs
- CacheVirtualItemsEvent.cs
- ScalarOps.cs
- WindowsPen.cs
- HighlightOverlayGlyph.cs
- MetafileHeaderWmf.cs
- _LazyAsyncResult.cs
- PropertyPathConverter.cs
- ActionNotSupportedException.cs
- EntityContainerAssociationSetEnd.cs
- XmlRawWriter.cs
- controlskin.cs
- DataRowComparer.cs
- InvalidPrinterException.cs
- MeasurementDCInfo.cs
- TableRowCollection.cs
- HtmlPageAdapter.cs
- TemplateBuilder.cs
- IISUnsafeMethods.cs
- ChtmlSelectionListAdapter.cs
- ValidationErrorCollection.cs
- FixedTextView.cs
- Util.cs
- QilTernary.cs
- CompModSwitches.cs
- DesignerActionPropertyItem.cs
- SqlLiftWhereClauses.cs
- ByteConverter.cs
- BufferModeSettings.cs
- WebPartManagerDesigner.cs
- ChildrenQuery.cs
- CrossSiteScriptingValidation.cs
- OutputScope.cs
- GridViewRow.cs
- __Filters.cs
- ScriptModule.cs
- ApplicationSettingsBase.cs
- TreeNodeStyleCollection.cs
- StrokeSerializer.cs
- EmptyArray.cs
- FederatedMessageSecurityOverHttpElement.cs
- DBSchemaTable.cs
- UIntPtr.cs
- WebPartCatalogCloseVerb.cs
- SafeUserTokenHandle.cs
- CounterNameConverter.cs
- MethodRental.cs
- CopyNamespacesAction.cs
- TemplateControlParser.cs
- OSFeature.cs
- XmlSiteMapProvider.cs
- Vector3DKeyFrameCollection.cs
- MinimizableAttributeTypeConverter.cs
- DbConnectionPoolOptions.cs
- SecurityRuntime.cs
- Encoding.cs
- ListMarkerSourceInfo.cs
- MessageQueueInstaller.cs
- ToolTipAutomationPeer.cs