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
- HwndHost.cs
- UIntPtr.cs
- FullTextBreakpoint.cs
- Control.cs
- ProcessModuleCollection.cs
- MessageBox.cs
- XmlSchemaSimpleContentExtension.cs
- XmlImplementation.cs
- HtmlSelect.cs
- Privilege.cs
- contentDescriptor.cs
- ExclusiveHandle.cs
- XmlSchemas.cs
- MailAddressParser.cs
- AccessText.cs
- DnsEndPoint.cs
- CustomSignedXml.cs
- GestureRecognitionResult.cs
- NavigatorOutput.cs
- ViewEvent.cs
- TreeNodeEventArgs.cs
- GridViewUpdatedEventArgs.cs
- UniqueIdentifierService.cs
- TreeViewEvent.cs
- MultiByteCodec.cs
- Asn1IntegerConverter.cs
- DbConnectionPoolIdentity.cs
- FileDataSourceCache.cs
- Pen.cs
- RepeaterItemCollection.cs
- XmlSerializerVersionAttribute.cs
- HttpContext.cs
- FormsAuthentication.cs
- MarkupObject.cs
- SetterBaseCollection.cs
- MetabaseServerConfig.cs
- PathGradientBrush.cs
- AsyncParams.cs
- Calendar.cs
- ResizeGrip.cs
- BaseAppDomainProtocolHandler.cs
- XmlIgnoreAttribute.cs
- PropertyNames.cs
- TreeViewAutomationPeer.cs
- CachedFontFamily.cs
- CodeComment.cs
- DataPagerFieldCollection.cs
- DataGrid.cs
- HtmlInputRadioButton.cs
- ConstructorNeedsTagAttribute.cs
- FieldToken.cs
- QueryOpeningEnumerator.cs
- IndexOutOfRangeException.cs
- SqlCacheDependencyDatabaseCollection.cs
- InternalBufferOverflowException.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- Point3D.cs
- DataGridViewCheckBoxCell.cs
- HttpContextBase.cs
- BitVector32.cs
- EntityContainer.cs
- InProcStateClientManager.cs
- CollectionExtensions.cs
- Point.cs
- StreamReader.cs
- UnsafeNativeMethods.cs
- EnumBuilder.cs
- Rfc4050KeyFormatter.cs
- WinEventWrap.cs
- WsatServiceCertificate.cs
- PhysicalFontFamily.cs
- SqlComparer.cs
- GroupStyle.cs
- TypeToStringValueConverter.cs
- DataGridCellInfo.cs
- BasicHttpBindingElement.cs
- RemotingConfigParser.cs
- DoubleUtil.cs
- UriTemplateDispatchFormatter.cs
- ObjectItemCollection.cs
- InvocationExpression.cs
- BaseUriHelper.cs
- EditorPartCollection.cs
- ShaperBuffers.cs
- Clock.cs
- GridSplitter.cs
- UriParserTemplates.cs
- TdsEnums.cs
- OleDbCommandBuilder.cs
- IDReferencePropertyAttribute.cs
- CodeDomSerializerException.cs
- HttpConfigurationSystem.cs
- ResourceReferenceExpression.cs
- VectorAnimation.cs
- ProcessHostServerConfig.cs
- HtmlShim.cs
- DrawingState.cs
- IsolatedStorageSecurityState.cs
- FlowLayoutPanelDesigner.cs
- ResXFileRef.cs