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
- TransactionManager.cs
- Validator.cs
- ServiceDescriptionSerializer.cs
- RegistryPermission.cs
- DataBoundLiteralControl.cs
- AspNetHostingPermission.cs
- HostingPreferredMapPath.cs
- CapiNative.cs
- PersonalizationProviderCollection.cs
- HandledMouseEvent.cs
- DataTableExtensions.cs
- PictureBox.cs
- COM2TypeInfoProcessor.cs
- ToolboxBitmapAttribute.cs
- HyperLink.cs
- DataGridViewTopRowAccessibleObject.cs
- HandlerFactoryWrapper.cs
- AssociationTypeEmitter.cs
- TrustLevel.cs
- FormatVersion.cs
- WebControlsSection.cs
- TextEndOfParagraph.cs
- FileClassifier.cs
- x509utils.cs
- Size.cs
- Exception.cs
- TreeIterator.cs
- ColumnMapVisitor.cs
- HtmlTable.cs
- ipaddressinformationcollection.cs
- XMLSyntaxException.cs
- OleDbCommand.cs
- CodeDirectionExpression.cs
- MenuEventArgs.cs
- ImageIndexEditor.cs
- Material.cs
- DiagnosticsConfigurationHandler.cs
- AttributeEmitter.cs
- BuildProvidersCompiler.cs
- EmptyCollection.cs
- TypefaceCollection.cs
- TextPattern.cs
- BindingNavigatorDesigner.cs
- Size.cs
- SqlRemoveConstantOrderBy.cs
- _NestedSingleAsyncResult.cs
- ComplexTypeEmitter.cs
- AnonymousIdentificationSection.cs
- XD.cs
- ListChangedEventArgs.cs
- DictionaryEditChange.cs
- ThrowHelper.cs
- ChannelSinkStacks.cs
- TypeUtil.cs
- TabControlCancelEvent.cs
- TriggerActionCollection.cs
- DispatcherEventArgs.cs
- BitmapFrameDecode.cs
- AutoGeneratedFieldProperties.cs
- SqlCacheDependencySection.cs
- RadialGradientBrush.cs
- SqlLiftIndependentRowExpressions.cs
- InvalidPipelineStoreException.cs
- ExpressionVisitor.cs
- TemplateManager.cs
- MsmqHostedTransportManager.cs
- GlyphCache.cs
- MostlySingletonList.cs
- BrowserCapabilitiesFactoryBase.cs
- LogicalChannelCollection.cs
- XD.cs
- Parallel.cs
- ApplicationBuildProvider.cs
- DynamicValidatorEventArgs.cs
- ValidationSummary.cs
- Point3DCollectionValueSerializer.cs
- SoapHeaderAttribute.cs
- FacetDescription.cs
- MediaContext.cs
- TableLayoutSettings.cs
- OracleConnectionString.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- MemoryStream.cs
- StandardOleMarshalObject.cs
- AgileSafeNativeMemoryHandle.cs
- RequestStatusBarUpdateEventArgs.cs
- ProtocolException.cs
- RoleServiceManager.cs
- WebConfigurationManager.cs
- IPEndPoint.cs
- WinEventQueueItem.cs
- AmbiguousMatchException.cs
- PointValueSerializer.cs
- AffineTransform3D.cs
- TypefaceMap.cs
- SiteOfOriginPart.cs
- SpecialFolderEnumConverter.cs
- ValidatedControlConverter.cs
- HtmlTableCell.cs
- FacetEnabledSchemaElement.cs