Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- TriState.cs
- CqlIdentifiers.cs
- CompilerScopeManager.cs
- EventPrivateKey.cs
- HandlerFactoryWrapper.cs
- SurrogateEncoder.cs
- SqlDataSourceCommandEventArgs.cs
- DefaultBinder.cs
- ObjectTag.cs
- OpenTypeLayout.cs
- ObjectTag.cs
- ObfuscateAssemblyAttribute.cs
- ApplicationBuildProvider.cs
- BamlTreeMap.cs
- DataGridDetailsPresenterAutomationPeer.cs
- TraceFilter.cs
- GenericRootAutomationPeer.cs
- SafeRegistryHandle.cs
- ExpressionPrefixAttribute.cs
- XmlBinaryReader.cs
- OleDbInfoMessageEvent.cs
- SettingsPropertyCollection.cs
- XmlHierarchicalEnumerable.cs
- Exceptions.cs
- DiscoveryClientDocuments.cs
- SQlBooleanStorage.cs
- TreeWalker.cs
- ServiceEndpoint.cs
- RevocationPoint.cs
- DBDataPermission.cs
- TokenBasedSetEnumerator.cs
- ReferencedAssembly.cs
- webeventbuffer.cs
- ChtmlFormAdapter.cs
- ReadOnlyNameValueCollection.cs
- HierarchicalDataBoundControlAdapter.cs
- TextTreeNode.cs
- LeaseManager.cs
- DataGridTextBoxColumn.cs
- WmlMobileTextWriter.cs
- SplineKeyFrames.cs
- _NetRes.cs
- SqlConnectionHelper.cs
- MobileUITypeEditor.cs
- comcontractssection.cs
- PriorityBinding.cs
- CustomAttributeFormatException.cs
- Baml2006SchemaContext.cs
- RefreshPropertiesAttribute.cs
- MatrixTransform.cs
- QilPatternVisitor.cs
- WindowsAuthenticationEventArgs.cs
- ConfigXmlElement.cs
- UnsafeNativeMethodsTablet.cs
- SafeArrayRankMismatchException.cs
- WindowsGraphicsCacheManager.cs
- BitmapMetadata.cs
- SmtpNetworkElement.cs
- ReferenceService.cs
- Rfc2898DeriveBytes.cs
- NavigatingCancelEventArgs.cs
- NumberFunctions.cs
- StaticExtensionConverter.cs
- ContentType.cs
- Optimizer.cs
- GeneralTransformCollection.cs
- XmlRawWriter.cs
- AutoCompleteStringCollection.cs
- Missing.cs
- DashStyle.cs
- Rect.cs
- XamlGridLengthSerializer.cs
- TemplateControlParser.cs
- ResXDataNode.cs
- DefaultBinder.cs
- EntityDataSourceUtil.cs
- XmlMapping.cs
- ExtendedPropertyCollection.cs
- NavigationProperty.cs
- SID.cs
- Identifier.cs
- IdentityValidationException.cs
- Point.cs
- exports.cs
- TdsParserHelperClasses.cs
- ProfileSection.cs
- GenericTypeParameterConverter.cs
- StatusBar.cs
- ProgressPage.cs
- RestClientProxyHandler.cs
- Crc32Helper.cs
- HyperLinkField.cs
- StringHandle.cs
- CryptoKeySecurity.cs
- CapabilitiesAssignment.cs
- AsymmetricSignatureDeformatter.cs
- PhonemeConverter.cs
- ValidatorCollection.cs
- CodeSubDirectoriesCollection.cs
- initElementDictionary.cs