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
- ProbeRequestResponseAsyncResult.cs
- CommandEventArgs.cs
- XsltException.cs
- XmlSchemaAnnotation.cs
- EditingCoordinator.cs
- DataSourceXmlSerializationAttribute.cs
- RenamedEventArgs.cs
- dtdvalidator.cs
- MetadataException.cs
- WebContext.cs
- PropertyIDSet.cs
- StringStorage.cs
- SqlPersonalizationProvider.cs
- MenuStrip.cs
- precedingquery.cs
- Timeline.cs
- TableLayoutSettingsTypeConverter.cs
- OneOfScalarConst.cs
- CodeDomConfigurationHandler.cs
- EventPropertyMap.cs
- UnaryNode.cs
- Size.cs
- MobileControlPersister.cs
- COMException.cs
- ISCIIEncoding.cs
- DesignParameter.cs
- OrderedHashRepartitionStream.cs
- EventLogPermissionEntry.cs
- StringSource.cs
- ServerIdentity.cs
- BuildTopDownAttribute.cs
- XmlSchemaInfo.cs
- GeneralTransform3DTo2DTo3D.cs
- SerialReceived.cs
- Deflater.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- GetPageNumberCompletedEventArgs.cs
- EncodingInfo.cs
- Method.cs
- BigInt.cs
- TextReader.cs
- AffineTransform3D.cs
- GridViewEditEventArgs.cs
- MulticastNotSupportedException.cs
- OrderPreservingPipeliningMergeHelper.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- ContentElementAutomationPeer.cs
- IntSecurity.cs
- SiteMembershipCondition.cs
- ChangeNode.cs
- Atom10FormatterFactory.cs
- BufferedGraphicsManager.cs
- Int16AnimationUsingKeyFrames.cs
- SafeLocalMemHandle.cs
- SystemThemeKey.cs
- MailAddress.cs
- EntityModelSchemaGenerator.cs
- SystemIPGlobalStatistics.cs
- OutputCacheSettings.cs
- DesignerVerbCollection.cs
- CodeStatementCollection.cs
- GridViewUpdatedEventArgs.cs
- SamlAuthorityBinding.cs
- ISO2022Encoding.cs
- Deflater.cs
- XmlSerializerVersionAttribute.cs
- MetadataArtifactLoaderComposite.cs
- SchemaAttDef.cs
- RemoteCryptoSignHashRequest.cs
- StructuredProperty.cs
- BuildManagerHost.cs
- TextTreeFixupNode.cs
- HMACSHA384.cs
- MetadataCollection.cs
- SkinBuilder.cs
- SizeLimitedCache.cs
- TypeHelpers.cs
- DataSourceListEditor.cs
- sqlinternaltransaction.cs
- RootBrowserWindow.cs
- ObjectResult.cs
- DoubleStorage.cs
- BindingCollection.cs
- MetadataArtifactLoaderComposite.cs
- DomNameTable.cs
- HistoryEventArgs.cs
- SafeTimerHandle.cs
- BaseTemplateCodeDomTreeGenerator.cs
- counter.cs
- TreeNode.cs
- OracleTransaction.cs
- ListItemViewAttribute.cs
- HttpFileCollectionWrapper.cs
- AttributeSetAction.cs
- ListParagraph.cs
- KeyedHashAlgorithm.cs
- LinearGradientBrush.cs
- DuplicateMessageDetector.cs
- DataFormats.cs
- EntityDescriptor.cs