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
- AlphaSortedEnumConverter.cs
- _LazyAsyncResult.cs
- Timer.cs
- ModuleConfigurationInfo.cs
- HyperLink.cs
- IPeerNeighbor.cs
- StringFormat.cs
- Descriptor.cs
- DataGridViewRowStateChangedEventArgs.cs
- TimeSpanValidatorAttribute.cs
- WebServicesInteroperability.cs
- ContentDefinition.cs
- CompensatableTransactionScopeActivityDesigner.cs
- storepermissionattribute.cs
- RectangleGeometry.cs
- TabletCollection.cs
- _UriTypeConverter.cs
- PageSettings.cs
- SchemaCollectionCompiler.cs
- SingleResultAttribute.cs
- RadioButton.cs
- ScrollBarRenderer.cs
- Activator.cs
- XmlStreamStore.cs
- CompModHelpers.cs
- ImageListStreamer.cs
- SchemaAttDef.cs
- Debug.cs
- DockPattern.cs
- ResolveNameEventArgs.cs
- CodeTypeOfExpression.cs
- PointF.cs
- storagemappingitemcollection.viewdictionary.cs
- TrustSection.cs
- SmiEventSink.cs
- ChannelManager.cs
- EventBindingService.cs
- ClientEndpointLoader.cs
- DataBindingCollection.cs
- PageCodeDomTreeGenerator.cs
- SortKey.cs
- ZipFileInfoCollection.cs
- CodeDomDecompiler.cs
- GridViewDeletedEventArgs.cs
- LinqDataView.cs
- PasswordRecovery.cs
- ISessionStateStore.cs
- TextFormatter.cs
- ServicePointManagerElement.cs
- TreeNodeStyleCollection.cs
- StdValidatorsAndConverters.cs
- XmlBaseWriter.cs
- PageThemeCodeDomTreeGenerator.cs
- SecurityTokenSerializer.cs
- RegexReplacement.cs
- DataControlFieldCell.cs
- MobileControlDesigner.cs
- GenerateScriptTypeAttribute.cs
- EntityDataSourceWrapper.cs
- HttpConfigurationSystem.cs
- SessionEndedEventArgs.cs
- ViewStateModeByIdAttribute.cs
- BreakRecordTable.cs
- FontSourceCollection.cs
- Translator.cs
- PerformanceCounterCategory.cs
- AncestorChangedEventArgs.cs
- NamespaceTable.cs
- MarkupObject.cs
- SafeTimerHandle.cs
- DiscoveryReferences.cs
- OrderingQueryOperator.cs
- ALinqExpressionVisitor.cs
- ExpressionBinding.cs
- BuildResult.cs
- SerializerProvider.cs
- DiscreteKeyFrames.cs
- AsyncResult.cs
- SqlProviderServices.cs
- SystemMulticastIPAddressInformation.cs
- Operand.cs
- MemoryRecordBuffer.cs
- CssClassPropertyAttribute.cs
- UnsafeNativeMethods.cs
- PersistenceContextEnlistment.cs
- ScopedMessagePartSpecification.cs
- SoapWriter.cs
- PersonalizationProviderHelper.cs
- IntranetCredentialPolicy.cs
- DesignerActionPropertyItem.cs
- InputScopeAttribute.cs
- PackageDigitalSignature.cs
- WinEventQueueItem.cs
- LogConverter.cs
- RoleManagerSection.cs
- GenericPrincipal.cs
- SimplePropertyEntry.cs
- FormsIdentity.cs
- NetWebProxyFinder.cs
- UserControlAutomationPeer.cs