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
- AssemblyHelper.cs
- RuntimeCompatibilityAttribute.cs
- ZoneButton.cs
- AnonymousIdentificationModule.cs
- MenuItem.cs
- ScrollPatternIdentifiers.cs
- PassportAuthenticationModule.cs
- Constants.cs
- UnsafeNativeMethods.cs
- XPathConvert.cs
- EditingMode.cs
- XhtmlBasicPhoneCallAdapter.cs
- ImageDrawing.cs
- OutputCacheProfileCollection.cs
- InputBindingCollection.cs
- EncryptedPackageFilter.cs
- DesignerCommandAdapter.cs
- MessageSmuggler.cs
- SpinWait.cs
- ExpressionPrefixAttribute.cs
- DataGridViewRowCollection.cs
- TextDecorationCollection.cs
- EventListenerClientSide.cs
- SecurityDescriptor.cs
- DomNameTable.cs
- ToolStripControlHost.cs
- IssuanceLicense.cs
- OrthographicCamera.cs
- QilPatternFactory.cs
- GridView.cs
- ObjectTag.cs
- SmiTypedGetterSetter.cs
- ShutDownListener.cs
- StylusPointDescription.cs
- ACE.cs
- AppSettingsSection.cs
- WindowsListViewItem.cs
- X509UI.cs
- RegisteredDisposeScript.cs
- Number.cs
- TextWriter.cs
- XmlName.cs
- SmiEventSink.cs
- RepeatEnumerable.cs
- RowTypeElement.cs
- HMAC.cs
- SQLInt16.cs
- __ComObject.cs
- WinEventHandler.cs
- SettingsBindableAttribute.cs
- StylusPointPropertyInfo.cs
- TimeEnumHelper.cs
- ControlIdConverter.cs
- GeneralTransform3D.cs
- ObjectNavigationPropertyMapping.cs
- PropertyDescriptorComparer.cs
- DataBoundControlAdapter.cs
- ToolStripSplitButton.cs
- XmlC14NWriter.cs
- IssuanceLicense.cs
- FileFormatException.cs
- AnnotationAuthorChangedEventArgs.cs
- DecoderFallbackWithFailureFlag.cs
- CodeBinaryOperatorExpression.cs
- ToolStripItem.cs
- ModelFunctionTypeElement.cs
- DiscoveryMessageProperty.cs
- PathParser.cs
- ClientFormsAuthenticationCredentials.cs
- CodePageUtils.cs
- QueryPrefixOp.cs
- _ProxyChain.cs
- TableCellAutomationPeer.cs
- TrackBar.cs
- WindowsToolbarAsMenu.cs
- CompModSwitches.cs
- FamilyTypefaceCollection.cs
- IconBitmapDecoder.cs
- BufferedStream.cs
- SerializationTrace.cs
- ResourceManager.cs
- WindowsPrincipal.cs
- QueryAccessibilityHelpEvent.cs
- Vector3DIndependentAnimationStorage.cs
- WebPartDisplayMode.cs
- CheckBoxFlatAdapter.cs
- StylusOverProperty.cs
- Effect.cs
- HebrewNumber.cs
- XmlToDatasetMap.cs
- CorruptingExceptionCommon.cs
- LiteralSubsegment.cs
- SymDocumentType.cs
- NameScope.cs
- DesignerRegionMouseEventArgs.cs
- SqlError.cs
- CancellationHandlerDesigner.cs
- RequestSecurityTokenResponse.cs
- safelink.cs
- TraceContext.cs