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
- SHA1Managed.cs
- MethodImplAttribute.cs
- PackageStore.cs
- EntityDesignerUtils.cs
- DataListComponentEditor.cs
- input.cs
- FixedSOMTableRow.cs
- DirectoryRootQuery.cs
- NetNamedPipeSecurityMode.cs
- HMAC.cs
- FileDataSourceCache.cs
- BaseComponentEditor.cs
- MinMaxParagraphWidth.cs
- InteropBitmapSource.cs
- PersonalizationProvider.cs
- ConfigXmlText.cs
- DetailsViewRowCollection.cs
- OpenTypeCommon.cs
- DriveInfo.cs
- Point.cs
- OperationContextScope.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- SelectionWordBreaker.cs
- TextMarkerSource.cs
- DbConnectionPool.cs
- BufferedGraphicsContext.cs
- FileUpload.cs
- ClipboardProcessor.cs
- SqlDataSourceFilteringEventArgs.cs
- EventListener.cs
- BitmapEffectCollection.cs
- DecimalKeyFrameCollection.cs
- BindValidationContext.cs
- selecteditemcollection.cs
- RtfControls.cs
- BamlBinaryReader.cs
- COM2ComponentEditor.cs
- DrawingState.cs
- ContainerFilterService.cs
- XsdBuildProvider.cs
- EventProxy.cs
- DesignerSerializerAttribute.cs
- DBCSCodePageEncoding.cs
- RoleService.cs
- HideDisabledControlAdapter.cs
- EditorZoneAutoFormat.cs
- Crypto.cs
- DefaultTextStoreTextComposition.cs
- CheckBox.cs
- CodeSnippetExpression.cs
- FixedDSBuilder.cs
- IfAction.cs
- ZipIOBlockManager.cs
- SQLGuid.cs
- AbandonedMutexException.cs
- DataGridParentRows.cs
- XPathSingletonIterator.cs
- HtmlInputImage.cs
- RSAPKCS1SignatureFormatter.cs
- CommunicationObjectAbortedException.cs
- SignatureDescription.cs
- CollectionDataContract.cs
- AsyncPostBackErrorEventArgs.cs
- ArglessEventHandlerProxy.cs
- SoapSchemaMember.cs
- CFStream.cs
- DrawingState.cs
- ControlCachePolicy.cs
- TemplatePropertyEntry.cs
- OutputScopeManager.cs
- SnapshotChangeTrackingStrategy.cs
- ToolStripDropDown.cs
- mansign.cs
- PreviewPrintController.cs
- DPAPIProtectedConfigurationProvider.cs
- ServiceObjectContainer.cs
- MarkupCompilePass1.cs
- StateMachineTimers.cs
- DecoderReplacementFallback.cs
- ValidationErrorCollection.cs
- SiteOfOriginContainer.cs
- PerformanceCounterPermission.cs
- MulticastNotSupportedException.cs
- ContextMarshalException.cs
- DrawingAttributeSerializer.cs
- MultiTouchSystemGestureLogic.cs
- XmlC14NWriter.cs
- DesignerActionUIService.cs
- InputProcessorProfiles.cs
- CodeTypeMemberCollection.cs
- Transform3DGroup.cs
- SimpleTextLine.cs
- EpmTargetTree.cs
- CultureNotFoundException.cs
- TreeNodeEventArgs.cs
- IListConverters.cs
- MetadataArtifactLoaderCompositeFile.cs
- ObjectDataSourceMethodEventArgs.cs
- ListenerServiceInstallComponent.cs
- ItemContainerGenerator.cs