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
- PageThemeCodeDomTreeGenerator.cs
- ThreadAbortException.cs
- FilteredXmlReader.cs
- HtmlWindow.cs
- StrokeCollection2.cs
- HtmlInputPassword.cs
- WindowsToolbarItemAsMenuItem.cs
- ListSourceHelper.cs
- UnsafeNativeMethods.cs
- CustomValidator.cs
- SqlException.cs
- MimeAnyImporter.cs
- DefaultValidator.cs
- ConnectionPoolManager.cs
- WindowsRichEditRange.cs
- ValueChangedEventManager.cs
- ErrorFormatterPage.cs
- RecognizerInfo.cs
- MsmqReceiveParameters.cs
- DtdParser.cs
- ColorConverter.cs
- CreateParams.cs
- HwndKeyboardInputProvider.cs
- XmlAttributes.cs
- XmlDataSourceNodeDescriptor.cs
- FilteredAttributeCollection.cs
- AttachmentService.cs
- ElasticEase.cs
- Int32RectConverter.cs
- ServiceHostFactory.cs
- DataSourceHelper.cs
- ExpandCollapsePattern.cs
- QuaternionAnimation.cs
- SqlFunctionAttribute.cs
- EventWaitHandleSecurity.cs
- Stack.cs
- Separator.cs
- StatementContext.cs
- ModelItemImpl.cs
- KnownColorTable.cs
- VideoDrawing.cs
- BindStream.cs
- ActivityBuilderHelper.cs
- ObjectTag.cs
- SettingsPropertyCollection.cs
- TemplateAction.cs
- WorkflowViewElement.cs
- SspiWrapper.cs
- XmlSchemaChoice.cs
- ThicknessAnimationUsingKeyFrames.cs
- RawStylusInputCustomDataList.cs
- Semaphore.cs
- ThreadStaticAttribute.cs
- ToolStripSettings.cs
- PackageStore.cs
- MessageProperties.cs
- _AcceptOverlappedAsyncResult.cs
- ApplicationDirectory.cs
- ToolStripComboBox.cs
- JournalEntryStack.cs
- HtmlPageAdapter.cs
- HMACSHA1.cs
- MenuItemStyleCollection.cs
- AdCreatedEventArgs.cs
- TextBlockAutomationPeer.cs
- DataControlPagerLinkButton.cs
- LinqToSqlWrapper.cs
- DummyDataSource.cs
- DispatcherHooks.cs
- SvcMapFileLoader.cs
- CacheSection.cs
- ElementMarkupObject.cs
- _UriSyntax.cs
- BooleanExpr.cs
- DesignTimeVisibleAttribute.cs
- TextContainerHelper.cs
- DurableInstanceProvider.cs
- ViewDesigner.cs
- CaseKeyBox.xaml.cs
- ControlEvent.cs
- ReadOnlyDictionary.cs
- CheckedListBox.cs
- InternalBufferManager.cs
- OdbcConnectionFactory.cs
- QueryExtender.cs
- MergeLocalizationDirectives.cs
- CallbackValidatorAttribute.cs
- KnownBoxes.cs
- DiscardableAttribute.cs
- XamlVector3DCollectionSerializer.cs
- wmiprovider.cs
- HwndStylusInputProvider.cs
- XmlCharCheckingWriter.cs
- EventSetter.cs
- GeneralTransform2DTo3DTo2D.cs
- SerializationAttributes.cs
- WebContext.cs
- PrintingPermissionAttribute.cs
- InheritanceAttribute.cs
- XmlSchemaSimpleTypeUnion.cs