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
- HostingEnvironment.cs
- SqlUserDefinedTypeAttribute.cs
- ColorMap.cs
- ApplicationId.cs
- XXXInfos.cs
- SqlCommand.cs
- FamilyMap.cs
- BlockCollection.cs
- DragCompletedEventArgs.cs
- XmlObjectSerializerWriteContext.cs
- RelationshipSet.cs
- ToolStripContentPanel.cs
- OutgoingWebResponseContext.cs
- XmlSchemaAppInfo.cs
- NameValuePair.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- PropertyPanel.cs
- LookupNode.cs
- IHttpResponseInternal.cs
- updateconfighost.cs
- WinInetCache.cs
- ExcludeFromCodeCoverageAttribute.cs
- NullableDecimalAverageAggregationOperator.cs
- CustomError.cs
- DisplayNameAttribute.cs
- ProtocolsSection.cs
- ClientUtils.cs
- FixedDocument.cs
- ContainerSelectorGlyph.cs
- HostingEnvironment.cs
- BuildProvider.cs
- Publisher.cs
- MLangCodePageEncoding.cs
- ToolboxItemFilterAttribute.cs
- TreeNodeBindingDepthConverter.cs
- DragAssistanceManager.cs
- DefaultHttpHandler.cs
- BamlBinaryWriter.cs
- MatrixKeyFrameCollection.cs
- HasCopySemanticsAttribute.cs
- PrePrepareMethodAttribute.cs
- ContextBase.cs
- ViewKeyConstraint.cs
- ComponentCodeDomSerializer.cs
- httpserverutility.cs
- XmlSiteMapProvider.cs
- UxThemeWrapper.cs
- ListControl.cs
- XmlSchemaAttribute.cs
- CompositeFontParser.cs
- StatusBarPanel.cs
- AttributeSetAction.cs
- IncrementalReadDecoders.cs
- DbMetaDataCollectionNames.cs
- OpenTypeLayout.cs
- ExpandedWrapper.cs
- UTF7Encoding.cs
- TextRunProperties.cs
- Tablet.cs
- BindStream.cs
- DataGridTable.cs
- PolyBezierSegmentFigureLogic.cs
- SmiRequestExecutor.cs
- Camera.cs
- _ContextAwareResult.cs
- ObsoleteAttribute.cs
- cookiecollection.cs
- Transactions.cs
- ElementUtil.cs
- TrustLevelCollection.cs
- BindingValueChangedEventArgs.cs
- Vector3DValueSerializer.cs
- MimeFormatter.cs
- UserControlBuildProvider.cs
- DummyDataSource.cs
- PrimaryKeyTypeConverter.cs
- _NestedMultipleAsyncResult.cs
- PermissionToken.cs
- AnimationClockResource.cs
- ExecutionEngineException.cs
- UnknownBitmapEncoder.cs
- Size3DConverter.cs
- KeyInfo.cs
- HyperLinkStyle.cs
- DomainUpDown.cs
- TokenCreationParameter.cs
- DBProviderConfigurationHandler.cs
- FileChangesMonitor.cs
- ActivityStatusChangeEventArgs.cs
- Point3DIndependentAnimationStorage.cs
- DataGridViewComboBoxCell.cs
- QueryStringConverter.cs
- SimpleApplicationHost.cs
- _ListenerRequestStream.cs
- RijndaelManagedTransform.cs
- NavigationPropertySingletonExpression.cs
- InfoCardAsymmetricCrypto.cs
- NullRuntimeConfig.cs
- GAC.cs
- SchemaComplexType.cs