Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- TransactionScope.cs
- ProcessStartInfo.cs
- DiscreteKeyFrames.cs
- MediaScriptCommandRoutedEventArgs.cs
- ClientSideQueueItem.cs
- TypeNameConverter.cs
- DataGridRow.cs
- WorkflowRuntimeServicesBehavior.cs
- HelpKeywordAttribute.cs
- safemediahandle.cs
- ResourceDictionary.cs
- PrincipalPermission.cs
- CodeArgumentReferenceExpression.cs
- GZipStream.cs
- TagMapInfo.cs
- PopupRootAutomationPeer.cs
- CreatingCookieEventArgs.cs
- ClientSideQueueItem.cs
- AssemblyAttributes.cs
- TransformCryptoHandle.cs
- PropertyPushdownHelper.cs
- ReachDocumentReferenceCollectionSerializer.cs
- XmlAttributeAttribute.cs
- StringComparer.cs
- DBNull.cs
- Point.cs
- MsmqAppDomainProtocolHandler.cs
- StyleXamlTreeBuilder.cs
- OdbcParameterCollection.cs
- LicenseManager.cs
- DataSourceCacheDurationConverter.cs
- SurrogateSelector.cs
- NameScopePropertyAttribute.cs
- DetailsViewRowCollection.cs
- ComplexPropertyEntry.cs
- XmlDigitalSignatureProcessor.cs
- odbcmetadatafactory.cs
- Int32Collection.cs
- DateRangeEvent.cs
- TdsParserStaticMethods.cs
- _UriTypeConverter.cs
- GlobalizationSection.cs
- WorkflowApplicationIdleEventArgs.cs
- RegularExpressionValidator.cs
- MediaScriptCommandRoutedEventArgs.cs
- DeobfuscatingStream.cs
- SRef.cs
- smtpconnection.cs
- ContentOperations.cs
- WinFormsSpinner.cs
- CompositeControl.cs
- KeyTimeConverter.cs
- WebPartVerbsEventArgs.cs
- EmbeddedObject.cs
- PartialCachingAttribute.cs
- sqlinternaltransaction.cs
- StrokeFIndices.cs
- DataGridViewCellStateChangedEventArgs.cs
- RecommendedAsConfigurableAttribute.cs
- TypeNameConverter.cs
- Point3DKeyFrameCollection.cs
- ConfigurationManagerHelper.cs
- TypeExtension.cs
- AspCompat.cs
- SettingsAttributeDictionary.cs
- BamlRecordWriter.cs
- RegexReplacement.cs
- QilSortKey.cs
- XmlCharCheckingReader.cs
- DetailsViewDeletedEventArgs.cs
- ByteViewer.cs
- LateBoundBitmapDecoder.cs
- XPathDocumentIterator.cs
- HWStack.cs
- ProfileProvider.cs
- ThreadSafeMessageFilterTable.cs
- UpWmlMobileTextWriter.cs
- GridLength.cs
- SafeCryptoHandles.cs
- FullTextState.cs
- WindowsStreamSecurityElement.cs
- LinqDataView.cs
- ReferenceTypeElement.cs
- ContractBase.cs
- CustomPeerResolverService.cs
- ArglessEventHandlerProxy.cs
- AVElementHelper.cs
- CompilerLocalReference.cs
- BasicExpandProvider.cs
- BoundField.cs
- Command.cs
- HWStack.cs
- InstanceKeyCompleteException.cs
- SQLInt64.cs
- SynchronizationHandlesCodeDomSerializer.cs
- Visitor.cs
- MimeParameterWriter.cs
- CallbackCorrelationInitializer.cs
- RequestUriProcessor.cs
- TextElement.cs