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
- BufferedGraphicsManager.cs
- SHA256.cs
- FormatSettings.cs
- ConfigurationStrings.cs
- PixelFormatConverter.cs
- MSAAWinEventWrap.cs
- WrappedIUnknown.cs
- TdsParserStateObject.cs
- DisplayMemberTemplateSelector.cs
- XmlSchemaAppInfo.cs
- ProxyWebPartConnectionCollection.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- DoubleAverageAggregationOperator.cs
- SafeFileHandle.cs
- DocumentsTrace.cs
- WebBrowserContainer.cs
- BamlWriter.cs
- SmiRecordBuffer.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- _NTAuthentication.cs
- DropDownList.cs
- UrlAuthorizationModule.cs
- SchemaLookupTable.cs
- DynamicMethod.cs
- SqlClientMetaDataCollectionNames.cs
- DocumentPage.cs
- CacheMode.cs
- AttributeCollection.cs
- DnsPermission.cs
- ComPlusTraceRecord.cs
- Application.cs
- ProcessingInstructionAction.cs
- BamlResourceContent.cs
- CodeExporter.cs
- PerfService.cs
- SupportingTokenProviderSpecification.cs
- Rotation3DAnimationBase.cs
- ImmutableClientRuntime.cs
- SmtpClient.cs
- GroupBoxDesigner.cs
- BasicCellRelation.cs
- LongValidator.cs
- ClientConfigurationHost.cs
- SelectedDatesCollection.cs
- PerfCounters.cs
- ImageField.cs
- SimpleExpression.cs
- ToolStripDropDownClosedEventArgs.cs
- HScrollProperties.cs
- OutputWindow.cs
- Matrix.cs
- LocatorManager.cs
- XmlTextReader.cs
- ProxyWebPartConnectionCollection.cs
- OpCellTreeNode.cs
- SqlConnectionHelper.cs
- BindToObject.cs
- ObjectListField.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ComplexTypeEmitter.cs
- PassportAuthentication.cs
- ConfigXmlCDataSection.cs
- FixedNode.cs
- CompositeFontInfo.cs
- DodSequenceMerge.cs
- DataGridViewColumnHeaderCell.cs
- Parsers.cs
- ModelFunctionTypeElement.cs
- BamlReader.cs
- RequestQueryParser.cs
- Int32CollectionValueSerializer.cs
- StylusButtonCollection.cs
- Transform3DGroup.cs
- TypeLibConverter.cs
- WSHttpSecurityElement.cs
- DocumentGridPage.cs
- EdmProviderManifest.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- TextElement.cs
- BitmapFrame.cs
- MultiBindingExpression.cs
- BamlWriter.cs
- Timer.cs
- ClientUtils.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- NumericUpDownAcceleration.cs
- ObservableCollectionDefaultValueFactory.cs
- FilterQuery.cs
- unsafenativemethodstextservices.cs
- HashMembershipCondition.cs
- Padding.cs
- AuthenticationModuleElement.cs
- PreviewPageInfo.cs
- SqlConnectionFactory.cs
- RowTypePropertyElement.cs
- EncoderNLS.cs
- DataBinder.cs
- DataReceivedEventArgs.cs
- CustomError.cs
- MainMenu.cs