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
- FamilyTypefaceCollection.cs
- SystemMulticastIPAddressInformation.cs
- ConfigurationValidatorBase.cs
- AuthorizationRule.cs
- FontUnitConverter.cs
- ToolStripPanelSelectionGlyph.cs
- BulletedListEventArgs.cs
- ZoneButton.cs
- DataContractSet.cs
- ImplicitInputBrush.cs
- CompleteWizardStep.cs
- precedingsibling.cs
- DocumentXPathNavigator.cs
- ManualResetEventSlim.cs
- PropertyValidationContext.cs
- WebBrowserBase.cs
- _Semaphore.cs
- Win32SafeHandles.cs
- ReadOnlyAttribute.cs
- UnaryOperationBinder.cs
- DataServiceQuery.cs
- DecimalKeyFrameCollection.cs
- HttpContextServiceHost.cs
- FilterQueryOptionExpression.cs
- WebUtil.cs
- SafeThemeHandle.cs
- XsltOutput.cs
- NativeMethods.cs
- Int32CAMarshaler.cs
- BufferBuilder.cs
- SelectionList.cs
- AdRotator.cs
- XhtmlBasicControlAdapter.cs
- Publisher.cs
- KerberosSecurityTokenAuthenticator.cs
- QilBinary.cs
- AsymmetricAlgorithm.cs
- MenuTracker.cs
- CodeCommentStatementCollection.cs
- XmlDomTextWriter.cs
- XmlSchemaSimpleType.cs
- GuidelineCollection.cs
- HashJoinQueryOperatorEnumerator.cs
- AsyncOperationManager.cs
- X509Extension.cs
- ChannelServices.cs
- DbConnectionStringBuilder.cs
- ContentType.cs
- StoreItemCollection.cs
- XmlNamespaceManager.cs
- ReceiveContextCollection.cs
- ConsumerConnectionPoint.cs
- RectIndependentAnimationStorage.cs
- NativeMethods.cs
- UpdatePanelControlTrigger.cs
- DataErrorValidationRule.cs
- WebHttpBindingCollectionElement.cs
- WebColorConverter.cs
- DispatcherTimer.cs
- UrlPropertyAttribute.cs
- BitmapVisualManager.cs
- ControlType.cs
- X509Certificate2.cs
- TreeViewTemplateSelector.cs
- InputBuffer.cs
- HttpStreamMessage.cs
- OutputScopeManager.cs
- DatePickerTextBox.cs
- DateTimeFormatInfo.cs
- precedingsibling.cs
- PolyBezierSegment.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- RoutedEvent.cs
- InstanceNameConverter.cs
- InputScopeConverter.cs
- FormViewUpdatedEventArgs.cs
- Constraint.cs
- Compiler.cs
- TableLayoutStyleCollection.cs
- TextFragmentEngine.cs
- EditingMode.cs
- QilSortKey.cs
- SqlClientMetaDataCollectionNames.cs
- PeerNameRecord.cs
- bidPrivateBase.cs
- TextLineBreak.cs
- RenderOptions.cs
- AddInAttribute.cs
- filewebrequest.cs
- Activation.cs
- SmiGettersStream.cs
- UnaryNode.cs
- ShowExpandedMultiValueConverter.cs
- DataColumnMappingCollection.cs
- TextRenderer.cs
- ClientTarget.cs
- WorkerRequest.cs
- XmlUTF8TextWriter.cs
- ColorContextHelper.cs
- RegexFCD.cs