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
- SelectedGridItemChangedEvent.cs
- AutoGeneratedField.cs
- Content.cs
- OutputWindow.cs
- DBConnection.cs
- CustomValidator.cs
- PointF.cs
- OraclePermission.cs
- ObjectViewEntityCollectionData.cs
- FieldAccessException.cs
- SqlCommand.cs
- TabletCollection.cs
- MediaElement.cs
- HtmlTextViewAdapter.cs
- DataGridViewColumnCollectionEditor.cs
- CodeGen.cs
- PathFigureCollectionConverter.cs
- MemberJoinTreeNode.cs
- IssuanceLicense.cs
- CurrencyManager.cs
- HttpCacheParams.cs
- OracleDateTime.cs
- PaperSource.cs
- TextSpan.cs
- SHA1Managed.cs
- DependencyProperty.cs
- ContentFileHelper.cs
- ExpressionEditorAttribute.cs
- GenericQueueSurrogate.cs
- XmlChoiceIdentifierAttribute.cs
- PolyLineSegment.cs
- WebPartCloseVerb.cs
- MasterPageBuildProvider.cs
- IsolatedStorage.cs
- EventSetter.cs
- LinkButton.cs
- MsdtcClusterUtils.cs
- DocumentReference.cs
- DefaultValueTypeConverter.cs
- XmlCodeExporter.cs
- HybridWebProxyFinder.cs
- RemotingException.cs
- RadioButtonRenderer.cs
- CheckBoxBaseAdapter.cs
- FormDesigner.cs
- WindowsSolidBrush.cs
- RepeaterItemEventArgs.cs
- TcpChannelHelper.cs
- EntityKeyElement.cs
- DiscoveryDocumentReference.cs
- KeyedCollection.cs
- HostingEnvironmentWrapper.cs
- FontDifferentiator.cs
- KeyedHashAlgorithm.cs
- cookie.cs
- MessageProperties.cs
- DataGridBoolColumn.cs
- _Win32.cs
- GeneralTransform3DTo2D.cs
- DispatchWrapper.cs
- VarInfo.cs
- DefaultValueAttribute.cs
- LineSegment.cs
- WindowsFont.cs
- WindowsSecurityToken.cs
- OracleConnection.cs
- SelectionPatternIdentifiers.cs
- SwitchLevelAttribute.cs
- ErrorEventArgs.cs
- TemplateControlParser.cs
- RTTrackingProfile.cs
- TemplateControlCodeDomTreeGenerator.cs
- TableRowGroup.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- Keywords.cs
- KeyValuePairs.cs
- _ChunkParse.cs
- WizardPanel.cs
- CodeMemberMethod.cs
- SessionStateUtil.cs
- ProviderUtil.cs
- CodeComment.cs
- RequestQueryProcessor.cs
- KeyNotFoundException.cs
- LabelLiteral.cs
- Processor.cs
- GeneralTransform3DTo2DTo3D.cs
- StartUpEventArgs.cs
- CompatibleComparer.cs
- Quaternion.cs
- RawStylusInputReport.cs
- SystemEvents.cs
- DefinitionBase.cs
- ParserExtension.cs
- ModelUtilities.cs
- InstanceNotReadyException.cs
- XmlArrayItemAttribute.cs
- Renderer.cs
- Multiply.cs
- DesigntimeLicenseContext.cs