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 / 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
- ResourcesGenerator.cs
- PreviewControlDesigner.cs
- ToolStripItemEventArgs.cs
- IItemContainerGenerator.cs
- EventDrivenDesigner.cs
- XmlSchemas.cs
- SectionVisual.cs
- XmlSortKey.cs
- DoubleAnimationClockResource.cs
- SaveFileDialog.cs
- WebPartTransformerCollection.cs
- LayoutTableCell.cs
- StateBag.cs
- Point.cs
- ByteViewer.cs
- Debug.cs
- HtmlAnchor.cs
- CardSpaceException.cs
- XmlValueConverter.cs
- RenderContext.cs
- MouseWheelEventArgs.cs
- WeakHashtable.cs
- ObjectSet.cs
- TrackingMemoryStreamFactory.cs
- UnsafeNetInfoNativeMethods.cs
- Utilities.cs
- backend.cs
- ExtentKey.cs
- CssStyleCollection.cs
- CompositeTypefaceMetrics.cs
- DataGridCommandEventArgs.cs
- MultiPartWriter.cs
- UserControlCodeDomTreeGenerator.cs
- ProfilePropertySettingsCollection.cs
- templategroup.cs
- QueueProcessor.cs
- TreeViewDesigner.cs
- CodeComment.cs
- EventLogPermissionEntry.cs
- SqlMethodTransformer.cs
- GregorianCalendarHelper.cs
- EmptyQuery.cs
- Lookup.cs
- QilValidationVisitor.cs
- BindingMAnagerBase.cs
- _HeaderInfo.cs
- EventLogEntry.cs
- DependencyObjectProvider.cs
- RefExpr.cs
- ServiceEndpointElement.cs
- LogLogRecordHeader.cs
- DbProviderFactoriesConfigurationHandler.cs
- StoragePropertyMapping.cs
- XhtmlTextWriter.cs
- ParseNumbers.cs
- BitStream.cs
- NameValueCollection.cs
- IgnorePropertiesAttribute.cs
- TypedElement.cs
- returneventsaver.cs
- OperationCanceledException.cs
- XamlValidatingReader.cs
- HttpServerProtocol.cs
- ColorInterpolationModeValidation.cs
- EndOfStreamException.cs
- SqlUdtInfo.cs
- TypeConverterBase.cs
- PictureBox.cs
- AdornerPresentationContext.cs
- ThreadAttributes.cs
- WindowsSecurityTokenAuthenticator.cs
- RNGCryptoServiceProvider.cs
- FrameworkElement.cs
- Exceptions.cs
- XPathAncestorQuery.cs
- XPathDocumentBuilder.cs
- StringStorage.cs
- XhtmlBasicValidatorAdapter.cs
- StyleBamlTreeBuilder.cs
- ReachPageContentSerializerAsync.cs
- QueryStringParameter.cs
- HuffModule.cs
- QilParameter.cs
- GridItem.cs
- DragEvent.cs
- RenderDataDrawingContext.cs
- InputLanguageProfileNotifySink.cs
- FormsAuthenticationUser.cs
- UnderstoodHeaders.cs
- BuildManagerHost.cs
- QilGeneratorEnv.cs
- CredentialManagerDialog.cs
- TextSchema.cs
- Environment.cs
- NonBatchDirectoryCompiler.cs
- CustomBindingElementCollection.cs
- ThicknessConverter.cs
- FullTextBreakpoint.cs
- CAGDesigner.cs
- ExpandCollapsePattern.cs