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
- PasswordBox.cs
- BinaryNegotiation.cs
- Int64KeyFrameCollection.cs
- FamilyTypefaceCollection.cs
- BindingGroup.cs
- ErrorProvider.cs
- ArgumentReference.cs
- SessionEndingEventArgs.cs
- AnnotationComponentManager.cs
- ThousandthOfEmRealPoints.cs
- DataGridViewAccessibleObject.cs
- SourceChangedEventArgs.cs
- FtpCachePolicyElement.cs
- EpmContentSerializerBase.cs
- Typography.cs
- ProgressBar.cs
- ClassHandlersStore.cs
- SmtpNegotiateAuthenticationModule.cs
- NativeMethods.cs
- ToolStripDesignerUtils.cs
- LifetimeServices.cs
- CodeTypeParameterCollection.cs
- Automation.cs
- EventProvider.cs
- ConstrainedDataObject.cs
- ConfigXmlCDataSection.cs
- SessionSwitchEventArgs.cs
- CorePropertiesFilter.cs
- RbTree.cs
- RelatedCurrencyManager.cs
- MonitoringDescriptionAttribute.cs
- TreeNode.cs
- RawUIStateInputReport.cs
- ShapeTypeface.cs
- Metadata.cs
- FtpWebRequest.cs
- SetterBaseCollection.cs
- AlignmentYValidation.cs
- SqlError.cs
- GenerateHelper.cs
- DocumentReferenceCollection.cs
- ProfessionalColors.cs
- HttpCacheParams.cs
- ObjectToIdCache.cs
- MemoryStream.cs
- BaseUriHelper.cs
- JsonReaderDelegator.cs
- XPathChildIterator.cs
- DateTimeStorage.cs
- MatrixAnimationBase.cs
- SHA384Cng.cs
- ColumnResizeAdorner.cs
- DataGridGeneralPage.cs
- CqlLexer.cs
- Privilege.cs
- RowSpanVector.cs
- FileDialogPermission.cs
- SqlDataSourceConfigureSortForm.cs
- DataContractAttribute.cs
- DataGridViewBand.cs
- NativeRecognizer.cs
- Rect3DValueSerializer.cs
- CharacterHit.cs
- SQLConvert.cs
- TabItem.cs
- NumericUpDownAcceleration.cs
- VarRefManager.cs
- SHA1.cs
- CodeObject.cs
- ExtenderProvidedPropertyAttribute.cs
- DataTemplateSelector.cs
- ListViewInsertionMark.cs
- FilteredDataSetHelper.cs
- EnumType.cs
- ManagedWndProcTracker.cs
- ErrorEventArgs.cs
- OleDbParameterCollection.cs
- TimerEventSubscription.cs
- ControlValuePropertyAttribute.cs
- TemplateKeyConverter.cs
- LateBoundBitmapDecoder.cs
- x509store.cs
- SqlClientMetaDataCollectionNames.cs
- DictionaryEntry.cs
- ClientData.cs
- DefaultSettingsSection.cs
- UdpRetransmissionSettings.cs
- EntityContainerEntitySet.cs
- _AuthenticationState.cs
- XmlStreamedByteStreamReader.cs
- FileRecordSequence.cs
- Sorting.cs
- DockPanel.cs
- RuntimeUtils.cs
- NullReferenceException.cs
- ReferencedAssembly.cs
- TransformerInfo.cs
- RegistryHandle.cs
- UnauthorizedAccessException.cs
- MetadataCacheItem.cs