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
- TextElementEnumerator.cs
- Operators.cs
- PageBuildProvider.cs
- RichTextBox.cs
- AppSettingsReader.cs
- ReadWriteObjectLock.cs
- StrongNameKeyPair.cs
- ApplicationException.cs
- ImageMapEventArgs.cs
- NativeBuffer.cs
- DynamicDataExtensions.cs
- TableParaClient.cs
- NonBatchDirectoryCompiler.cs
- MissingFieldException.cs
- StorageMappingItemCollection.cs
- CapabilitiesUse.cs
- LogicalMethodInfo.cs
- DataKeyArray.cs
- DataKey.cs
- GlobalItem.cs
- WMICapabilities.cs
- XamlToRtfParser.cs
- ToolboxComponentsCreatedEventArgs.cs
- Resources.Designer.cs
- TabControlCancelEvent.cs
- GcSettings.cs
- VerificationException.cs
- NetCodeGroup.cs
- PropertyChangedEventArgs.cs
- httpapplicationstate.cs
- DescendentsWalker.cs
- RoleManagerEventArgs.cs
- MemberAccessException.cs
- StickyNoteContentControl.cs
- SettingsPropertyNotFoundException.cs
- XmlFormatReaderGenerator.cs
- IERequestCache.cs
- Geometry3D.cs
- TriggerBase.cs
- Root.cs
- mansign.cs
- HttpRequest.cs
- XmlAttributes.cs
- DataGridViewRowPostPaintEventArgs.cs
- CompiledXpathExpr.cs
- TriggerActionCollection.cs
- GuidTagList.cs
- XmlSchemaParticle.cs
- Globals.cs
- HttpApplication.cs
- securitymgrsite.cs
- CodeDomSerializerBase.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SessionStateItemCollection.cs
- TemplatePropertyEntry.cs
- DataMemberAttribute.cs
- TimeSpanSecondsConverter.cs
- IssuanceLicense.cs
- DataRowChangeEvent.cs
- WinEventQueueItem.cs
- OperatorExpressions.cs
- CommandManager.cs
- ExpanderAutomationPeer.cs
- InfoCardSymmetricCrypto.cs
- AttachmentService.cs
- DateTimeConverter2.cs
- CustomLineCap.cs
- odbcmetadatafactory.cs
- TraceLog.cs
- PersonalizationProviderHelper.cs
- XmlLinkedNode.cs
- SiteMapDataSourceView.cs
- AggregateNode.cs
- ChangeTracker.cs
- DesignerVerbCollection.cs
- GregorianCalendarHelper.cs
- BinaryObjectReader.cs
- WebBrowserHelper.cs
- ISFClipboardData.cs
- GroupItem.cs
- SvcMapFileSerializer.cs
- SystemIcmpV4Statistics.cs
- FusionWrap.cs
- WorkflowServiceBehavior.cs
- Int32Converter.cs
- FontEditor.cs
- _LocalDataStoreMgr.cs
- BufferedGraphicsContext.cs
- PropertyValue.cs
- ProtectedConfiguration.cs
- HostUtils.cs
- SortedDictionary.cs
- SqlUDTStorage.cs
- ProxyAttribute.cs
- XmlLanguageConverter.cs
- ResourcePool.cs
- ReflectPropertyDescriptor.cs
- Rect3D.cs
- FileDataSourceCache.cs
- ValidationResults.cs