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
- BaseConfigurationRecord.cs
- DataGridCommandEventArgs.cs
- Config.cs
- EllipseGeometry.cs
- DataGridTextBoxColumn.cs
- RegularExpressionValidator.cs
- Decimal.cs
- SharedConnectionInfo.cs
- AppSettingsExpressionBuilder.cs
- DataGridViewRowPrePaintEventArgs.cs
- OutputCacheProfileCollection.cs
- TemplateControlBuildProvider.cs
- SynchronizedDispatch.cs
- DependencyObjectType.cs
- CorrelationManager.cs
- XmlValidatingReader.cs
- SpeechUI.cs
- HitTestDrawingContextWalker.cs
- TableCell.cs
- MenuItemStyleCollection.cs
- BufferAllocator.cs
- WebBrowser.cs
- SortKey.cs
- ObjectDataSourceDesigner.cs
- peersecurityelement.cs
- StorageMappingItemLoader.cs
- DateTimeFormat.cs
- ScriptBehaviorDescriptor.cs
- ToolStripPanelRenderEventArgs.cs
- CompleteWizardStep.cs
- DataObjectMethodAttribute.cs
- BinaryObjectReader.cs
- XmlQueryTypeFactory.cs
- ToolStripItemImageRenderEventArgs.cs
- InvokeWebServiceDesigner.cs
- SocketManager.cs
- DropShadowBitmapEffect.cs
- GroupItemAutomationPeer.cs
- DiscoveryMessageSequence11.cs
- CodeTypeConstructor.cs
- FixedSOMPageConstructor.cs
- WinEventHandler.cs
- BitmapCodecInfoInternal.cs
- WebPartCancelEventArgs.cs
- Int16Storage.cs
- ProfileInfo.cs
- GPRECT.cs
- WeakHashtable.cs
- BuildDependencySet.cs
- Stream.cs
- ADMembershipUser.cs
- DataComponentGenerator.cs
- TreeView.cs
- GeometryModel3D.cs
- DataFieldEditor.cs
- BaseAsyncResult.cs
- FlowLayoutSettings.cs
- ShaperBuffers.cs
- EntityDataSourceReferenceGroup.cs
- WrappedKeySecurityTokenParameters.cs
- ACL.cs
- UIPermission.cs
- SqlBooleanMismatchVisitor.cs
- CodeNamespace.cs
- MetadataSet.cs
- ObjectSet.cs
- TypeConverterMarkupExtension.cs
- _DynamicWinsockMethods.cs
- PictureBoxDesigner.cs
- Selector.cs
- DLinqColumnProvider.cs
- ListViewTableRow.cs
- HttpResponseBase.cs
- CqlLexerHelpers.cs
- FieldTemplateUserControl.cs
- StringSource.cs
- TextComposition.cs
- VariantWrapper.cs
- DataSourceHelper.cs
- HorizontalAlignConverter.cs
- HostExecutionContextManager.cs
- CodeCommentStatement.cs
- Configuration.cs
- LayoutInformation.cs
- RenderContext.cs
- IncrementalHitTester.cs
- DataServiceRequestArgs.cs
- GraphicsState.cs
- Freezable.cs
- InternalSafeNativeMethods.cs
- InternalsVisibleToAttribute.cs
- RowSpanVector.cs
- ByteStack.cs
- PtsHost.cs
- ClassicBorderDecorator.cs
- PrintingPermission.cs
- CqlParser.cs
- DbConnectionPoolOptions.cs
- SupportsEventValidationAttribute.cs
- ActivityWithResultConverter.cs