Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / ChangeInterceptorAttribute.cs / 1305376 / 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
- ApplicationHost.cs
- ConversionContext.cs
- VectorCollection.cs
- LabelAutomationPeer.cs
- DataKeyArray.cs
- Imaging.cs
- VerificationAttribute.cs
- Wrapper.cs
- RuleValidation.cs
- ObjectListItem.cs
- DataServiceHostWrapper.cs
- RefType.cs
- TextParaLineResult.cs
- CollectionView.cs
- DateTime.cs
- UnionCodeGroup.cs
- ReadOnlyCollection.cs
- UriTemplateMatch.cs
- DurationConverter.cs
- UrlPropertyAttribute.cs
- RenderDataDrawingContext.cs
- ByteAnimation.cs
- AsymmetricSecurityBindingElement.cs
- Table.cs
- StringDictionaryWithComparer.cs
- XmlSubtreeReader.cs
- SectionUpdates.cs
- TabControlCancelEvent.cs
- ReadOnlyState.cs
- ClientOptions.cs
- AuthorizationRuleCollection.cs
- PerfCounters.cs
- SharedStatics.cs
- ListParagraph.cs
- AttachmentService.cs
- DetailsViewDeleteEventArgs.cs
- PropertyInformationCollection.cs
- Utility.cs
- FormViewDeletedEventArgs.cs
- DummyDataSource.cs
- ExtendedPropertyDescriptor.cs
- TextSerializer.cs
- MemberHolder.cs
- UnionExpr.cs
- CharAnimationBase.cs
- DbDataReader.cs
- BasicKeyConstraint.cs
- ParameterElement.cs
- StackSpiller.Generated.cs
- DrawingGroup.cs
- TypeGeneratedEventArgs.cs
- ServiceDefaults.cs
- MultiSelector.cs
- ApplicationProxyInternal.cs
- LabelDesigner.cs
- sitestring.cs
- Helpers.cs
- XslException.cs
- ByteStreamGeometryContext.cs
- ClientCredentialsElement.cs
- _BaseOverlappedAsyncResult.cs
- ScriptingProfileServiceSection.cs
- Walker.cs
- WebPartCatalogAddVerb.cs
- DataGridViewElement.cs
- DesignerTransaction.cs
- SiteMapNode.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- CfgParser.cs
- XmlReaderSettings.cs
- SpecularMaterial.cs
- SimpleWebHandlerParser.cs
- InvalidAsynchronousStateException.cs
- HashSet.cs
- PEFileEvidenceFactory.cs
- MessageContractExporter.cs
- ActivityCodeDomSerializer.cs
- Encoding.cs
- ComponentChangingEvent.cs
- SoapHttpTransportImporter.cs
- SHA1CryptoServiceProvider.cs
- SoapCommonClasses.cs
- GeneralTransform.cs
- VisualStyleElement.cs
- GridLength.cs
- DataTableCollection.cs
- PointAnimationUsingPath.cs
- Matrix.cs
- Thread.cs
- ExpandoClass.cs
- documentsequencetextcontainer.cs
- DictionaryEntry.cs
- AxisAngleRotation3D.cs
- XmlLoader.cs
- TransactionScopeDesigner.cs
- EmptyReadOnlyDictionaryInternal.cs
- BitmapEffectvisualstate.cs
- PropertiesTab.cs
- ContentIterators.cs
- FacetChecker.cs