Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- control.ime.cs
- GenericUriParser.cs
- _TimerThread.cs
- DynamicILGenerator.cs
- WindowCollection.cs
- FlowDocumentPaginator.cs
- SQLInt32Storage.cs
- Int64Animation.cs
- InheritablePropertyChangeInfo.cs
- BaseCodePageEncoding.cs
- PermissionSetEnumerator.cs
- XPathCompileException.cs
- TiffBitmapDecoder.cs
- SelectionEditingBehavior.cs
- SerializerWriterEventHandlers.cs
- ComponentManagerBroker.cs
- util.cs
- SystemResourceHost.cs
- VirtualizingStackPanel.cs
- Graphics.cs
- ColorMatrix.cs
- UIElementCollection.cs
- JumpList.cs
- CompareInfo.cs
- ScrollBarAutomationPeer.cs
- ComponentCommands.cs
- StrokeCollectionDefaultValueFactory.cs
- ImplicitInputBrush.cs
- StylusDevice.cs
- Misc.cs
- Rfc2898DeriveBytes.cs
- XmlTypeMapping.cs
- XmlHierarchyData.cs
- Misc.cs
- BrowserCapabilitiesCodeGenerator.cs
- CodeCommentStatement.cs
- SchemaReference.cs
- WriteableBitmap.cs
- String.cs
- WebControlAdapter.cs
- SymbolEqualComparer.cs
- DesignerHost.cs
- SignatureDescription.cs
- StringFormat.cs
- CodeDefaultValueExpression.cs
- CodeTypeDeclaration.cs
- XmlException.cs
- DataSetViewSchema.cs
- Regex.cs
- ExceptionUtil.cs
- PageOutputColor.cs
- login.cs
- RelationshipDetailsCollection.cs
- CaseCqlBlock.cs
- ICspAsymmetricAlgorithm.cs
- WorkflowMarkupSerializationManager.cs
- ContactManager.cs
- ResourceProviderFactory.cs
- RouteParametersHelper.cs
- StopRoutingHandler.cs
- HMACSHA1.cs
- ProgressBar.cs
- ConnectionsZone.cs
- WebAdminConfigurationHelper.cs
- DataGridDetailsPresenter.cs
- CategoryGridEntry.cs
- ButtonFieldBase.cs
- PluralizationService.cs
- wgx_sdk_version.cs
- ConstraintStruct.cs
- RequestCachePolicy.cs
- UrlMappingsModule.cs
- ListView.cs
- ChameleonKey.cs
- SocketAddress.cs
- Compiler.cs
- StorageMappingItemCollection.cs
- unsafenativemethodstextservices.cs
- Win32SafeHandles.cs
- InvalidDataException.cs
- LogEntry.cs
- SafeArrayTypeMismatchException.cs
- cache.cs
- Vector3DIndependentAnimationStorage.cs
- ConnectionManagementElement.cs
- GeneralTransform.cs
- SizeConverter.cs
- OpenFileDialog.cs
- Stream.cs
- AppDomainGrammarProxy.cs
- DataGridViewComboBoxEditingControl.cs
- SchemaImporterExtension.cs
- Compiler.cs
- NumericUpDownAccelerationCollection.cs
- basemetadatamappingvisitor.cs
- TabletDevice.cs
- PerformanceCountersElement.cs
- CombinedGeometry.cs
- HandlerFactoryCache.cs
- DataRelation.cs