Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- StrokeIntersection.cs
- GridViewColumnHeaderAutomationPeer.cs
- OleDbParameter.cs
- HtmlTernaryTree.cs
- CommonXSendMessage.cs
- BaseTemplateParser.cs
- ArrangedElementCollection.cs
- HistoryEventArgs.cs
- XmlQualifiedName.cs
- ClearTypeHintValidation.cs
- ExecutionEngineException.cs
- HttpServerUtilityWrapper.cs
- WorkflowServiceHostFactory.cs
- ExtensionWindowHeader.cs
- Bitmap.cs
- PreProcessInputEventArgs.cs
- DrawingImage.cs
- ParallelTimeline.cs
- ZoneButton.cs
- DetailsViewPagerRow.cs
- User.cs
- URLMembershipCondition.cs
- RefreshPropertiesAttribute.cs
- RegionIterator.cs
- UpdateCompiler.cs
- MethodRental.cs
- SqlIdentifier.cs
- CurrencyWrapper.cs
- WebPartTransformerAttribute.cs
- ISCIIEncoding.cs
- XmlSchemaComplexContentExtension.cs
- FragmentQuery.cs
- MatrixAnimationUsingKeyFrames.cs
- Point3D.cs
- HeaderedItemsControl.cs
- PriorityBinding.cs
- GiveFeedbackEvent.cs
- ReadOnlyDictionary.cs
- IssuanceLicense.cs
- AccessViolationException.cs
- SystemColors.cs
- WebPartAddingEventArgs.cs
- SecurityContextKeyIdentifierClause.cs
- ProfileEventArgs.cs
- WorkflowCommandExtensionItem.cs
- SubMenuStyle.cs
- basecomparevalidator.cs
- NetMsmqBindingElement.cs
- ToolStripSplitStackLayout.cs
- EastAsianLunisolarCalendar.cs
- AffineTransform3D.cs
- MinimizableAttributeTypeConverter.cs
- WhitespaceRuleLookup.cs
- BaseProcessProtocolHandler.cs
- RC2.cs
- WebHttpDispatchOperationSelectorData.cs
- HttpWebRequest.cs
- ImportCatalogPart.cs
- SystemFonts.cs
- CacheEntry.cs
- SQLBytes.cs
- RadioButton.cs
- Query.cs
- Rect3DValueSerializer.cs
- Error.cs
- JoinTreeSlot.cs
- TemplatePropertyEntry.cs
- unsafenativemethodsother.cs
- StatusBarItemAutomationPeer.cs
- DefaultPrintController.cs
- XmlLinkedNode.cs
- Activation.cs
- XPathAxisIterator.cs
- ActiveDocumentEvent.cs
- Compiler.cs
- DocumentSequenceHighlightLayer.cs
- PathParser.cs
- LayoutTable.cs
- TextSelection.cs
- JpegBitmapEncoder.cs
- DateTimeValueSerializerContext.cs
- OleDbConnectionFactory.cs
- ObjectPersistData.cs
- AuthenticationServiceManager.cs
- DataControlField.cs
- ExecutionContext.cs
- XmlnsDefinitionAttribute.cs
- GPRECTF.cs
- HostingEnvironment.cs
- DefaultTextStoreTextComposition.cs
- LinearQuaternionKeyFrame.cs
- SaveFileDialog.cs
- basecomparevalidator.cs
- Select.cs
- ByteArrayHelperWithString.cs
- Automation.cs
- TableProvider.cs
- CompositeCollectionView.cs
- XmlSchemaRedefine.cs
- SubMenuStyle.cs