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
- WorkflowItemPresenter.cs
- GlobalizationAssembly.cs
- XD.cs
- SQLSingle.cs
- RichTextBoxAutomationPeer.cs
- UpdateRecord.cs
- ReadWriteSpinLock.cs
- ConnectionPoint.cs
- Image.cs
- DeferredTextReference.cs
- PathTooLongException.cs
- UTF32Encoding.cs
- CanonicalXml.cs
- DataFieldCollectionEditor.cs
- ReliableOutputConnection.cs
- SqlCacheDependencySection.cs
- WorkflowServiceHostFactory.cs
- XmlEntityReference.cs
- ComponentEvent.cs
- Decorator.cs
- OdbcEnvironment.cs
- CultureInfo.cs
- ConfigViewGenerator.cs
- XamlGridLengthSerializer.cs
- StringUtil.cs
- SolidBrush.cs
- XslVisitor.cs
- Message.cs
- ScalarConstant.cs
- X509SecurityTokenAuthenticator.cs
- FigureHelper.cs
- TreeNodeStyleCollection.cs
- RealProxy.cs
- iisPickupDirectory.cs
- PrintPreviewControl.cs
- ServiceDescription.cs
- XmlSchemaNotation.cs
- Literal.cs
- InteropEnvironment.cs
- WebPartConnectionsConnectVerb.cs
- ListBox.cs
- XmlRawWriterWrapper.cs
- LayoutDump.cs
- UpWmlMobileTextWriter.cs
- DefinitionBase.cs
- StyleSheet.cs
- LinearGradientBrush.cs
- ZipIOLocalFileDataDescriptor.cs
- _OverlappedAsyncResult.cs
- FullTrustAssemblyCollection.cs
- ClockGroup.cs
- DirectoryNotFoundException.cs
- EntityContainerAssociationSet.cs
- DataGridViewCheckBoxColumn.cs
- WorkflowMarkupSerializationManager.cs
- GeometryGroup.cs
- PointLightBase.cs
- ViewStateException.cs
- PageTheme.cs
- XamlStackWriter.cs
- Stack.cs
- BasicCellRelation.cs
- ButtonBase.cs
- OpenTypeCommon.cs
- ToolStripOverflow.cs
- OutOfMemoryException.cs
- WeakReference.cs
- XmlSchemaSimpleContentRestriction.cs
- GlyphRunDrawing.cs
- MenuAdapter.cs
- InfoCardUIAgent.cs
- MenuItemBindingCollection.cs
- PrintPreviewControl.cs
- DateTimeUtil.cs
- Viewport3DVisual.cs
- FormatterConverter.cs
- DynamicMetaObjectBinder.cs
- WinFormsUtils.cs
- RequestQueue.cs
- BaseDataBoundControl.cs
- HtmlInputCheckBox.cs
- LinkButton.cs
- StateWorkerRequest.cs
- __Filters.cs
- NameSpaceExtractor.cs
- PropertyTab.cs
- StickyNoteContentControl.cs
- TableLayout.cs
- Geometry3D.cs
- BaseTemplateParser.cs
- Geometry.cs
- ISAPIRuntime.cs
- RequestCachePolicy.cs
- HtmlHead.cs
- ScriptReferenceEventArgs.cs
- ScrollChrome.cs
- RuntimeConfigLKG.cs
- DbConnectionPoolCounters.cs
- WebPartDeleteVerb.cs
- ObjectViewEntityCollectionData.cs