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
- CollectionConverter.cs
- TextServicesCompartment.cs
- DefaultParameterValueAttribute.cs
- WebAdminConfigurationHelper.cs
- CapacityStreamGeometryContext.cs
- FloaterParaClient.cs
- KeyTimeConverter.cs
- TraceUtility.cs
- TableItemStyle.cs
- WindowsFormsHost.cs
- BypassElementCollection.cs
- XmlQueryOutput.cs
- SafeCloseHandleCritical.cs
- SqlProvider.cs
- SignatureHelper.cs
- _Events.cs
- WebPartAddingEventArgs.cs
- QilInvokeLateBound.cs
- ExtentKey.cs
- PTUtility.cs
- NewItemsContextMenuStrip.cs
- FixedSOMPage.cs
- CanonicalFormWriter.cs
- LineGeometry.cs
- WebBrowserHelper.cs
- TransformGroup.cs
- ToolStripPanelRow.cs
- ListView.cs
- EmbeddedObject.cs
- MetadataFile.cs
- SelectionManager.cs
- DrawingImage.cs
- WebPartCancelEventArgs.cs
- HttpModuleCollection.cs
- DataGridViewCheckBoxColumn.cs
- TextBreakpoint.cs
- ElementHost.cs
- MetadataItem.cs
- EventManager.cs
- Attributes.cs
- RegexWriter.cs
- TextDecorationCollectionConverter.cs
- XamlStyleSerializer.cs
- PostBackOptions.cs
- XmlnsPrefixAttribute.cs
- ListItemsPage.cs
- SqlUtils.cs
- FactoryRecord.cs
- CompositeTypefaceMetrics.cs
- OdbcEnvironmentHandle.cs
- CurrentChangingEventArgs.cs
- TraceProvider.cs
- NavigateEvent.cs
- EncodingNLS.cs
- ScriptingWebServicesSectionGroup.cs
- PersistenceContextEnlistment.cs
- SizeLimitedCache.cs
- TokenBasedSetEnumerator.cs
- MatrixTransform3D.cs
- DataControlCommands.cs
- Effect.cs
- InputLanguageManager.cs
- Light.cs
- QilChoice.cs
- OdbcConnectionString.cs
- MetadataFile.cs
- WriterOutput.cs
- Int32.cs
- OdbcEnvironmentHandle.cs
- ActiveDocumentEvent.cs
- HwndHost.cs
- DefaultMemberAttribute.cs
- ObfuscationAttribute.cs
- SurrogateEncoder.cs
- VectorAnimationBase.cs
- Literal.cs
- NonBatchDirectoryCompiler.cs
- XPathNodeInfoAtom.cs
- AddressAccessDeniedException.cs
- SqlCaseSimplifier.cs
- ListBase.cs
- MailAddressCollection.cs
- SystemWebExtensionsSectionGroup.cs
- PropertyChange.cs
- Viewport3DAutomationPeer.cs
- RowUpdatedEventArgs.cs
- EntityClassGenerator.cs
- ExecutorLocksHeldException.cs
- LifetimeServices.cs
- DictionaryTraceRecord.cs
- XmlSchemaAny.cs
- Enum.cs
- Style.cs
- CodeSubDirectory.cs
- HeaderUtility.cs
- webeventbuffer.cs
- SerializerProvider.cs
- FontCollection.cs
- MediaPlayerState.cs
- CodeStatementCollection.cs