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
- HMACSHA256.cs
- OrderByLifter.cs
- Avt.cs
- TemplateKeyConverter.cs
- AnimationStorage.cs
- SafeNativeMethodsCLR.cs
- DbgCompiler.cs
- AssemblyNameProxy.cs
- PageSetupDialog.cs
- UInt16Converter.cs
- DBPropSet.cs
- RootBrowserWindow.cs
- CrossAppDomainChannel.cs
- SmtpReplyReader.cs
- GetIndexBinder.cs
- DurableInstanceManager.cs
- WebDisplayNameAttribute.cs
- DesignerProperties.cs
- ShimAsPublicXamlType.cs
- DrawingGroup.cs
- TextElementCollectionHelper.cs
- PeerName.cs
- ScaleTransform.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ControllableStoryboardAction.cs
- SingleTagSectionHandler.cs
- MDIClient.cs
- ExpressionVisitor.cs
- ProcessModelSection.cs
- ProbeMatchesCD1.cs
- StylusButtonCollection.cs
- ReadOnlyPermissionSet.cs
- TableRowGroupCollection.cs
- SQLByteStorage.cs
- ApplicationFileParser.cs
- _SafeNetHandles.cs
- XmlSchemaAnyAttribute.cs
- LocatorGroup.cs
- RowToParametersTransformer.cs
- ClusterRegistryConfigurationProvider.cs
- CodeGenerator.cs
- AuthenticationModuleElement.cs
- FilterableAttribute.cs
- DesignerLabelAdapter.cs
- SeverityFilter.cs
- _NestedSingleAsyncResult.cs
- Collection.cs
- NoPersistHandle.cs
- DockProviderWrapper.cs
- TerminateDesigner.cs
- StrongName.cs
- CompensateDesigner.cs
- XmlDeclaration.cs
- ByteStack.cs
- WebPartUserCapability.cs
- AllMembershipCondition.cs
- TextBlockAutomationPeer.cs
- EdmProviderManifest.cs
- GrammarBuilderRuleRef.cs
- TextServicesLoader.cs
- ScrollEvent.cs
- CngKeyCreationParameters.cs
- DesignOnlyAttribute.cs
- ApplicationServiceManager.cs
- ElasticEase.cs
- PublishLicense.cs
- XhtmlCssHandler.cs
- TransactionContextValidator.cs
- FormatConvertedBitmap.cs
- _ConnectOverlappedAsyncResult.cs
- ToolboxItemFilterAttribute.cs
- NoneExcludedImageIndexConverter.cs
- ReflectPropertyDescriptor.cs
- ScrollBarAutomationPeer.cs
- AnimatedTypeHelpers.cs
- InvalidPropValue.cs
- GiveFeedbackEventArgs.cs
- CodeMemberField.cs
- CopyNodeSetAction.cs
- PropagatorResult.cs
- DateTime.cs
- InternalResources.cs
- SqlCommand.cs
- IfJoinedCondition.cs
- PageEventArgs.cs
- ArrangedElement.cs
- ElementHost.cs
- GC.cs
- OdbcParameterCollection.cs
- Parameter.cs
- ConditionedDesigner.cs
- TextPattern.cs
- HttpCookieCollection.cs
- ChangePasswordAutoFormat.cs
- StringAnimationUsingKeyFrames.cs
- TemplateControl.cs
- SizeAnimationClockResource.cs
- StateWorkerRequest.cs
- SafeFileHandle.cs
- MatrixTransform3D.cs