Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PKCS1MaskGenerationMethod.cs
- ContourSegment.cs
- ProfileSettings.cs
- EventDrivenDesigner.cs
- InputMethodStateTypeInfo.cs
- InvalidPipelineStoreException.cs
- JournalEntry.cs
- GroupBoxRenderer.cs
- Int64.cs
- ValueExpressions.cs
- DataSetViewSchema.cs
- CachingHintValidation.cs
- DebugHandleTracker.cs
- SendSecurityHeaderElementContainer.cs
- ComUdtElement.cs
- AVElementHelper.cs
- Pair.cs
- LZCodec.cs
- CroppedBitmap.cs
- SystemPens.cs
- Matrix3D.cs
- XmlLinkedNode.cs
- login.cs
- FormatterConverter.cs
- XmlException.cs
- CryptoApi.cs
- DropDownButton.cs
- RsaSecurityTokenParameters.cs
- ProfessionalColors.cs
- WorkflowPrinting.cs
- SimpleType.cs
- EventDescriptorCollection.cs
- StatusStrip.cs
- PtsHost.cs
- DataGridViewCellEventArgs.cs
- EntityFrameworkVersions.cs
- CodeBlockBuilder.cs
- TransformerConfigurationWizardBase.cs
- _SingleItemRequestCache.cs
- ScriptResourceInfo.cs
- DNS.cs
- CookieProtection.cs
- BackEase.cs
- COM2ColorConverter.cs
- ReachSerializableProperties.cs
- RepeatButtonAutomationPeer.cs
- OdbcConnection.cs
- RowCache.cs
- HtmlInputCheckBox.cs
- XmlElementElementCollection.cs
- RuntimeWrappedException.cs
- StringToken.cs
- Socket.cs
- ServiceModelStringsVersion1.cs
- HwndSourceKeyboardInputSite.cs
- Listbox.cs
- RuleInfoComparer.cs
- Message.cs
- MeshGeometry3D.cs
- PartialList.cs
- DragEventArgs.cs
- CommandManager.cs
- ImageClickEventArgs.cs
- SqlRecordBuffer.cs
- FontEmbeddingManager.cs
- DataViewManager.cs
- QuaternionAnimationBase.cs
- PrefixHandle.cs
- EventsTab.cs
- AssemblyCollection.cs
- NamespaceList.cs
- Evaluator.cs
- StorageMappingItemCollection.cs
- ComponentConverter.cs
- XmlDocumentFragment.cs
- ProcessInputEventArgs.cs
- SelectionPattern.cs
- PrivilegedConfigurationManager.cs
- ManipulationInertiaStartingEventArgs.cs
- CodeStatement.cs
- CaseInsensitiveComparer.cs
- OverflowException.cs
- DesignerActionMethodItem.cs
- DefaultValidator.cs
- HtmlInputHidden.cs
- DateTimeStorage.cs
- RowCache.cs
- _LocalDataStoreMgr.cs
- NamedPipeChannelListener.cs
- ToolBarButton.cs
- ViewStateModeByIdAttribute.cs
- DecoderBestFitFallback.cs
- SQLUtility.cs
- ProviderConnectionPointCollection.cs
- HttpListener.cs
- FileDetails.cs
- BitmapScalingModeValidation.cs
- DisableDpiAwarenessAttribute.cs
- StatusBarPanelClickEvent.cs
- StatusCommandUI.cs