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
- KeyboardNavigation.cs
- Parallel.cs
- BaseValidator.cs
- TypeInitializationException.cs
- XmlSchemaSimpleContentExtension.cs
- ProviderCollection.cs
- SynthesizerStateChangedEventArgs.cs
- EventListenerClientSide.cs
- BitmapEffectInputConnector.cs
- ParamArrayAttribute.cs
- ScriptRegistrationManager.cs
- UseLicense.cs
- SafeArrayRankMismatchException.cs
- XmlSchemaFacet.cs
- DefaultValueTypeConverter.cs
- Command.cs
- EnterpriseServicesHelper.cs
- ObjectPersistData.cs
- ValueConversionAttribute.cs
- ViewKeyConstraint.cs
- GridViewColumnHeader.cs
- DWriteFactory.cs
- DelimitedListTraceListener.cs
- TaskExtensions.cs
- SpeechRecognitionEngine.cs
- PreservationFileReader.cs
- AttributeInfo.cs
- KerberosSecurityTokenProvider.cs
- PassportAuthenticationEventArgs.cs
- WeakHashtable.cs
- ResourceCategoryAttribute.cs
- SafeReadContext.cs
- UmAlQuraCalendar.cs
- ValidationErrorCollection.cs
- ProxyWebPartConnectionCollection.cs
- EUCJPEncoding.cs
- EnlistmentState.cs
- ExtensionsSection.cs
- BatchStream.cs
- CfgArc.cs
- DataGridState.cs
- EventMappingSettingsCollection.cs
- UInt64Converter.cs
- BackStopAuthenticationModule.cs
- Subtree.cs
- ProfileParameter.cs
- BulletedList.cs
- TemplatingOptionsDialog.cs
- CodeAttributeDeclarationCollection.cs
- TargetControlTypeAttribute.cs
- XsdDuration.cs
- CodeLinePragma.cs
- WeakRefEnumerator.cs
- ObjectReferenceStack.cs
- QueryInterceptorAttribute.cs
- ServiceActivationException.cs
- GlobalProxySelection.cs
- PkcsUtils.cs
- UTF32Encoding.cs
- CheckBoxList.cs
- ResourceManager.cs
- DataSetUtil.cs
- RegistryDataKey.cs
- initElementDictionary.cs
- Binding.cs
- TreeViewAutomationPeer.cs
- OracleTimeSpan.cs
- AdornerLayer.cs
- DataControlPagerLinkButton.cs
- NextPreviousPagerField.cs
- Bits.cs
- LogFlushAsyncResult.cs
- SyndicationSerializer.cs
- VariantWrapper.cs
- ObjectContext.cs
- TextElementEnumerator.cs
- UnsafeNativeMethods.cs
- EmptyTextWriter.cs
- StreamGeometryContext.cs
- CharAnimationUsingKeyFrames.cs
- GeneralTransformCollection.cs
- RadioButtonBaseAdapter.cs
- ObservableCollection.cs
- WindowAutomationPeer.cs
- RemotingAttributes.cs
- SemanticAnalyzer.cs
- TransformerTypeCollection.cs
- RowBinding.cs
- BitmapCodecInfoInternal.cs
- RegexRunnerFactory.cs
- SQLString.cs
- XmlSchemaSimpleTypeUnion.cs
- TypedElement.cs
- DependencyPropertyKind.cs
- GiveFeedbackEventArgs.cs
- ArrayTypeMismatchException.cs
- WindowsRebar.cs
- StorageEntityTypeMapping.cs
- MatrixUtil.cs
- ToolStripStatusLabel.cs