Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- FontStretch.cs
- HtmlElement.cs
- EntitySetBaseCollection.cs
- _PooledStream.cs
- ObservableDictionary.cs
- RectangleConverter.cs
- ObjectContextServiceProvider.cs
- ListControl.cs
- HttpCapabilitiesBase.cs
- TextElement.cs
- Queue.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- XmlDeclaration.cs
- XmlSerializerObjectSerializer.cs
- QilExpression.cs
- DbConnectionHelper.cs
- XMLDiffLoader.cs
- FlowLayoutSettings.cs
- ToolZone.cs
- LeaseManager.cs
- EllipseGeometry.cs
- NegotiateStream.cs
- NotCondition.cs
- ConfigurationPermission.cs
- FilterException.cs
- UserValidatedEventArgs.cs
- Rights.cs
- EpmContentSerializer.cs
- TypedReference.cs
- HitTestFilterBehavior.cs
- CommandBindingCollection.cs
- Camera.cs
- GridViewCommandEventArgs.cs
- CalendarDay.cs
- Run.cs
- _SslStream.cs
- ServiceOperationHelpers.cs
- ListBoxItemWrapperAutomationPeer.cs
- DispatcherExceptionEventArgs.cs
- DataServiceProviderWrapper.cs
- ProcessManager.cs
- SafeNativeMethodsOther.cs
- XsdDuration.cs
- DataSourceControl.cs
- XPathAncestorQuery.cs
- CmsUtils.cs
- sitestring.cs
- NavigatorInput.cs
- Repeater.cs
- DesigntimeLicenseContext.cs
- XmlSchemaSimpleContentRestriction.cs
- AccessKeyManager.cs
- cookieexception.cs
- ObjectAnimationBase.cs
- HtmlSelect.cs
- EventArgs.cs
- RsaSecurityToken.cs
- SqlLiftIndependentRowExpressions.cs
- QueueProcessor.cs
- Transform3DGroup.cs
- X509CertificateEndpointIdentity.cs
- CodeDomLocalizationProvider.cs
- GeneratedView.cs
- formatstringdialog.cs
- MSAANativeProvider.cs
- Publisher.cs
- XPathSingletonIterator.cs
- DesignerCategoryAttribute.cs
- BitmapEffectrendercontext.cs
- RevocationPoint.cs
- complextypematerializer.cs
- XamlRtfConverter.cs
- TiffBitmapDecoder.cs
- SingleAnimation.cs
- SqlVisitor.cs
- CmsInterop.cs
- ClientConfigurationHost.cs
- GenericUI.cs
- XmlQueryStaticData.cs
- Baml2006ReaderFrame.cs
- CodeTypeOfExpression.cs
- linebase.cs
- WindowsRegion.cs
- RepeatInfo.cs
- FormatConvertedBitmap.cs
- ThreadAttributes.cs
- InstanceDataCollection.cs
- LassoHelper.cs
- DateTimeStorage.cs
- EditorBrowsableAttribute.cs
- RuleElement.cs
- ConstructorBuilder.cs
- Parsers.cs
- DynamicActionMessageFilter.cs
- SortedSetDebugView.cs
- HttpProcessUtility.cs
- Literal.cs
- UnsafeNativeMethods.cs
- IpcServerChannel.cs
- userdatakeys.cs