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
- InstanceKeyNotReadyException.cs
- AssociationEndMember.cs
- ResumeStoryboard.cs
- Accessible.cs
- DataGridViewRowsAddedEventArgs.cs
- VectorCollection.cs
- WorkflowRuntimeService.cs
- RelationshipEnd.cs
- DebuggerAttributes.cs
- CodeRegionDirective.cs
- CustomErrorCollection.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- MsmqIntegrationMessagePool.cs
- CacheChildrenQuery.cs
- QuaternionRotation3D.cs
- ProtocolViolationException.cs
- FilterUserControlBase.cs
- PathStreamGeometryContext.cs
- DateTimeFormat.cs
- ProtocolsSection.cs
- HMACRIPEMD160.cs
- BrowserCapabilitiesFactory.cs
- WebReferencesBuildProvider.cs
- ConfigXmlCDataSection.cs
- XpsFilter.cs
- TypeAccessException.cs
- ConfigDefinitionUpdates.cs
- TypeDependencyAttribute.cs
- CryptographicAttribute.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- StringHandle.cs
- ClientSettingsSection.cs
- contentDescriptor.cs
- CustomValidator.cs
- TraceHandler.cs
- MimeBasePart.cs
- ByteStorage.cs
- OverlappedAsyncResult.cs
- DrawingImage.cs
- StorageEntityContainerMapping.cs
- LocalClientSecuritySettingsElement.cs
- ViewEventArgs.cs
- ResXFileRef.cs
- MessageDecoder.cs
- BadImageFormatException.cs
- HandlerWithFactory.cs
- EncoderFallback.cs
- LazyTextWriterCreator.cs
- CodeTypeParameterCollection.cs
- RegexInterpreter.cs
- ObjectDataSource.cs
- EntityDataSourceWrapper.cs
- BoolExpression.cs
- TTSEvent.cs
- HttpCookie.cs
- EtwTrackingBehaviorElement.cs
- AnnotationHighlightLayer.cs
- TreeNodeCollectionEditor.cs
- UndoManager.cs
- NativeMethods.cs
- CodeCompileUnit.cs
- MaterialGroup.cs
- MatrixCamera.cs
- ExtendedPropertyCollection.cs
- DataGridViewCheckBoxCell.cs
- DataViewSettingCollection.cs
- FatalException.cs
- TargetConverter.cs
- HiddenFieldPageStatePersister.cs
- TypeUtil.cs
- FileEnumerator.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- NativeMethods.cs
- Collection.cs
- COM2ExtendedUITypeEditor.cs
- ProxySimple.cs
- Image.cs
- TrackBarRenderer.cs
- DesignTimeVisibleAttribute.cs
- EntityFrameworkVersions.cs
- CategoriesDocument.cs
- AdornerDecorator.cs
- XmlUnspecifiedAttribute.cs
- SoapCodeExporter.cs
- PropertiesTab.cs
- RelatedView.cs
- TagMapCollection.cs
- MultipleViewPattern.cs
- GeometryModel3D.cs
- GlyphShapingProperties.cs
- WriterOutput.cs
- SystemIPGlobalStatistics.cs
- PropertyGridCommands.cs
- AccessKeyManager.cs
- DigestComparer.cs
- Point3DKeyFrameCollection.cs
- XmlSignificantWhitespace.cs
- MimeWriter.cs
- SamlDelegatingWriter.cs
- ToolBarTray.cs