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
- ParameterBuilder.cs
- WebUtil.cs
- ParameterBuilder.cs
- ResourceAttributes.cs
- DataServiceSaveChangesEventArgs.cs
- Point4DConverter.cs
- ArithmeticException.cs
- ContentHostHelper.cs
- UIElement3D.cs
- columnmapkeybuilder.cs
- TemplateLookupAction.cs
- BitmapEffectDrawing.cs
- TimerElapsedEvenArgs.cs
- TextSchema.cs
- OSEnvironmentHelper.cs
- CdpEqualityComparer.cs
- WebPartDisplayMode.cs
- WorkflowValidationFailedException.cs
- CodeTypeParameter.cs
- GridViewRowEventArgs.cs
- XmlSchema.cs
- ZipIORawDataFileBlock.cs
- ConstantProjectedSlot.cs
- DetailsViewInsertEventArgs.cs
- _ShellExpression.cs
- BinHexEncoder.cs
- PageRequestManager.cs
- ComponentResourceManager.cs
- SectionXmlInfo.cs
- HyperLink.cs
- CodeAttributeDeclarationCollection.cs
- fixedPageContentExtractor.cs
- Quad.cs
- CompareInfo.cs
- ContextMarshalException.cs
- TextBoxBase.cs
- CompilerCollection.cs
- XamlHostingConfiguration.cs
- HashJoinQueryOperatorEnumerator.cs
- FigureHelper.cs
- WorkerRequest.cs
- DbReferenceCollection.cs
- PrinterUnitConvert.cs
- CatalogPartChrome.cs
- ScalarRestriction.cs
- PanelContainerDesigner.cs
- DocumentDesigner.cs
- Assembly.cs
- StorageMappingItemLoader.cs
- Descriptor.cs
- EventLogPropertySelector.cs
- MimeWriter.cs
- SchemaSetCompiler.cs
- CodeMethodInvokeExpression.cs
- CircleHotSpot.cs
- ExpressionBindings.cs
- RangeBaseAutomationPeer.cs
- SqlNotificationRequest.cs
- SemanticResolver.cs
- File.cs
- GlyphShapingProperties.cs
- XPathAncestorQuery.cs
- ConfigurationStrings.cs
- ModuleConfigurationInfo.cs
- PolyLineSegment.cs
- CompilerError.cs
- X509AudioLogo.cs
- FontSourceCollection.cs
- MappingException.cs
- DateRangeEvent.cs
- MILUtilities.cs
- SynchronizedDispatch.cs
- Control.cs
- Simplifier.cs
- Attachment.cs
- ServiceBehaviorElement.cs
- AsyncCompletedEventArgs.cs
- SafeRightsManagementPubHandle.cs
- ObjectSecurityT.cs
- QualifiedCellIdBoolean.cs
- AuthorizationPolicyTypeElement.cs
- Vector3dCollection.cs
- RtfToXamlLexer.cs
- XmlSerializerFactory.cs
- FixedSOMElement.cs
- XmlILStorageConverter.cs
- DbSetClause.cs
- ApplicationDirectory.cs
- SoapTypeAttribute.cs
- LocalBuilder.cs
- URLMembershipCondition.cs
- TextOnlyOutput.cs
- TypedReference.cs
- DataMisalignedException.cs
- SqlNotificationRequest.cs
- Material.cs
- ConnectionProviderAttribute.cs
- DynamicValidator.cs
- CellTreeNodeVisitors.cs
- WebPartManager.cs