Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWeb / Server / System / Data / Services / ChangeInterceptorAttribute.cs / 1 / ChangeInterceptorAttribute.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Provides a class to decorate change callback methods. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services { using System; using System.Diagnostics; ////// Use this attribute on a DataService method to indicate that /// this method should be invoked with data changes. /// [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)] public sealed class ChangeInterceptorAttribute : Attribute { ///Container name that the method filters. private readonly string entitySetName; ///Declares a new /// Name of entity set that the method intercepts changes to. public ChangeInterceptorAttribute(string entitySetName) { if (entitySetName == null) { throw Error.ArgumentNull("entitySetName"); } this.entitySetName = entitySetName; } ///instance. Entity set name that the method intercepts changes to. 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 change callback methods. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services { using System; using System.Diagnostics; ////// Use this attribute on a DataService method to indicate that /// this method should be invoked with data changes. /// [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)] public sealed class ChangeInterceptorAttribute : Attribute { ///Container name that the method filters. private readonly string entitySetName; ///Declares a new /// Name of entity set that the method intercepts changes to. public ChangeInterceptorAttribute(string entitySetName) { if (entitySetName == null) { throw Error.ArgumentNull("entitySetName"); } this.entitySetName = entitySetName; } ///instance. Entity set name that the method intercepts changes to. 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
- EventLogPermissionAttribute.cs
- Events.cs
- TreeNode.cs
- CharacterHit.cs
- CommonObjectSecurity.cs
- ExceptionValidationRule.cs
- MultiSelectRootGridEntry.cs
- ListMarkerSourceInfo.cs
- TimeSpanConverter.cs
- TypeContext.cs
- PenContext.cs
- ScrollBar.cs
- SetStoryboardSpeedRatio.cs
- SwitchElementsCollection.cs
- EntityDataSourceChangingEventArgs.cs
- EditorReuseAttribute.cs
- TextWriterEngine.cs
- SystemPens.cs
- StringResourceManager.cs
- ConfigurationException.cs
- Regex.cs
- DataObjectAttribute.cs
- KeyMatchBuilder.cs
- MessagingDescriptionAttribute.cs
- ServiceNotStartedException.cs
- XmlDocument.cs
- EdgeProfileValidation.cs
- AuthenticationService.cs
- TextParagraph.cs
- ImageInfo.cs
- CoTaskMemHandle.cs
- FormsAuthenticationUser.cs
- FileDialogCustomPlace.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- TextViewSelectionProcessor.cs
- ApplicationBuildProvider.cs
- TextSchema.cs
- NegotiationTokenProvider.cs
- ComponentCommands.cs
- SqlPersonalizationProvider.cs
- WindowsToolbarItemAsMenuItem.cs
- BridgeDataRecord.cs
- TextServicesCompartmentEventSink.cs
- WsatConfiguration.cs
- Vector3DIndependentAnimationStorage.cs
- ProfileModule.cs
- DropDownList.cs
- PageCatalogPartDesigner.cs
- FontStretchConverter.cs
- MethodCallTranslator.cs
- Evaluator.cs
- WebPartZone.cs
- DeobfuscatingStream.cs
- VariableAction.cs
- ConfigurationErrorsException.cs
- ContextMenuStrip.cs
- TextParaClient.cs
- CatalogPartChrome.cs
- CombinedGeometry.cs
- SystemIPGlobalProperties.cs
- SafePipeHandle.cs
- CheckPair.cs
- ParameterCollection.cs
- CodeNamespace.cs
- DataGridCellsPanel.cs
- Rect3DConverter.cs
- CodePageEncoding.cs
- ParserHooks.cs
- TextEditor.cs
- DesignDataSource.cs
- HitTestWithPointDrawingContextWalker.cs
- DrawingGroup.cs
- LockedActivityGlyph.cs
- WebService.cs
- SliderAutomationPeer.cs
- MenuItemCollectionEditorDialog.cs
- DateTimeStorage.cs
- Win32Exception.cs
- RealProxy.cs
- InsufficientMemoryException.cs
- CodeStatementCollection.cs
- ScalarOps.cs
- EmbeddedMailObject.cs
- AttributeCallbackBuilder.cs
- PreviewKeyDownEventArgs.cs
- FormatterServices.cs
- SiteOfOriginPart.cs
- RelatedView.cs
- ConfigurationStrings.cs
- DescendentsWalker.cs
- TextTreeTextElementNode.cs
- ListViewDataItem.cs
- ThicknessKeyFrameCollection.cs
- StreamedWorkflowDefinitionContext.cs
- EmptyEnumerable.cs
- SizeConverter.cs
- OleAutBinder.cs
- StatusBarAutomationPeer.cs
- DaylightTime.cs
- Win32PrintDialog.cs