Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWeb / Server / System / Data / Services / QueryInterceptorAttribute.cs / 1 / 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
- IndentedWriter.cs
- WsdlInspector.cs
- LogArchiveSnapshot.cs
- followingquery.cs
- TagPrefixAttribute.cs
- TextSelectionHelper.cs
- ParallelTimeline.cs
- MetafileHeader.cs
- DynamicObject.cs
- ExpiredSecurityTokenException.cs
- MailMessage.cs
- BStrWrapper.cs
- TraceLog.cs
- RemotingSurrogateSelector.cs
- DataKey.cs
- PagerSettings.cs
- EnterpriseServicesHelper.cs
- FindCriteriaElement.cs
- ServiceContractViewControl.cs
- TypeLoadException.cs
- TextFormatterImp.cs
- FixedSOMTableCell.cs
- ToolStripHighContrastRenderer.cs
- BitHelper.cs
- ContentTypeSettingClientMessageFormatter.cs
- ExpandSegment.cs
- ControlPropertyNameConverter.cs
- ValidatorCollection.cs
- StopStoryboard.cs
- HtmlForm.cs
- QueryableDataSourceHelper.cs
- StyleSheetDesigner.cs
- ObjectListCommandCollection.cs
- WasAdminWrapper.cs
- RectValueSerializer.cs
- IPHostEntry.cs
- ProcessingInstructionAction.cs
- RenderContext.cs
- BitmapPalettes.cs
- HitTestFilterBehavior.cs
- Encoding.cs
- AsyncResult.cs
- RootProfilePropertySettingsCollection.cs
- StringInfo.cs
- HttpRequest.cs
- MinMaxParagraphWidth.cs
- RegexRunnerFactory.cs
- FirstMatchCodeGroup.cs
- WhitespaceRuleLookup.cs
- Divide.cs
- RecordBuilder.cs
- FrameDimension.cs
- SerializationIncompleteException.cs
- BindToObject.cs
- DebuggerAttributes.cs
- COM2PictureConverter.cs
- ViewEvent.cs
- DataGridViewRowEventArgs.cs
- XmlIgnoreAttribute.cs
- Point4D.cs
- RuntimeCompatibilityAttribute.cs
- Helpers.cs
- BuildManager.cs
- AttributeQuery.cs
- DesignerVerb.cs
- XmlAnyElementAttributes.cs
- XNodeSchemaApplier.cs
- TdsParserHelperClasses.cs
- SupportsEventValidationAttribute.cs
- JsonXmlDataContract.cs
- EntityDataSourceChangingEventArgs.cs
- StringDictionary.cs
- TextTreeTextElementNode.cs
- TextUtf8RawTextWriter.cs
- HtmlSelect.cs
- WinInetCache.cs
- GridViewCancelEditEventArgs.cs
- GridViewAutomationPeer.cs
- DataServiceQueryException.cs
- DateTimeValueSerializerContext.cs
- DataExchangeServiceBinder.cs
- FixedNode.cs
- BoundField.cs
- MetricEntry.cs
- ManagementDateTime.cs
- SemanticTag.cs
- UniqueIdentifierService.cs
- ISCIIEncoding.cs
- AttributeCollection.cs
- StrokeNodeData.cs
- StoreItemCollection.Loader.cs
- MsmqQueue.cs
- SerializerWriterEventHandlers.cs
- returneventsaver.cs
- ProjectionCamera.cs
- Array.cs
- DragStartedEventArgs.cs
- TextPattern.cs
- RectIndependentAnimationStorage.cs
- FixedTextSelectionProcessor.cs