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
- ImageSource.cs
- FtpRequestCacheValidator.cs
- SettingsAttributeDictionary.cs
- TrustManager.cs
- CodeConstructor.cs
- TreeSet.cs
- MultilineStringConverter.cs
- ResourceManager.cs
- Timer.cs
- SnapLine.cs
- ActivityDesignerResources.cs
- LexicalChunk.cs
- IndentedWriter.cs
- XmlnsCache.cs
- OleDbPropertySetGuid.cs
- MenuItemCollectionEditorDialog.cs
- ImagingCache.cs
- LicenseProviderAttribute.cs
- ThemeInfoAttribute.cs
- SslStreamSecurityBindingElement.cs
- ListChangedEventArgs.cs
- NetworkAddressChange.cs
- TimelineCollection.cs
- TypographyProperties.cs
- HeaderElement.cs
- DataGridViewCellStyleConverter.cs
- NullRuntimeConfig.cs
- MailDefinition.cs
- HttpCookiesSection.cs
- StandardBindingImporter.cs
- ProtocolsConfiguration.cs
- PenThreadWorker.cs
- DataGridTablesFactory.cs
- GridProviderWrapper.cs
- ToolStripItemImageRenderEventArgs.cs
- GroupBox.cs
- DataViewSetting.cs
- ListItemCollection.cs
- WorkflowRuntimeSection.cs
- MsmqHostedTransportConfiguration.cs
- FloaterBaseParagraph.cs
- ToolBarButton.cs
- BamlLocalizationDictionary.cs
- SocketAddress.cs
- SafeLibraryHandle.cs
- LoginView.cs
- SystemIPGlobalStatistics.cs
- ServiceNameElementCollection.cs
- SettingsBase.cs
- StrokeCollectionConverter.cs
- WebPartDescription.cs
- InternalTransaction.cs
- BooleanProjectedSlot.cs
- DesignerActionListCollection.cs
- VisualStyleElement.cs
- X509Certificate2.cs
- BitmapData.cs
- ActivityBindForm.cs
- PointLightBase.cs
- DataGridViewComboBoxCell.cs
- DayRenderEvent.cs
- OpenFileDialog.cs
- SingleConverter.cs
- SemanticResolver.cs
- XmlEncodedRawTextWriter.cs
- FontConverter.cs
- XamlNamespaceHelper.cs
- ScriptingWebServicesSectionGroup.cs
- ConfigurationManagerInternal.cs
- MultilineStringConverter.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ComponentChangedEvent.cs
- Transform3DGroup.cs
- TraceContext.cs
- MetadataItemEmitter.cs
- StatusBarPanelClickEvent.cs
- PopupEventArgs.cs
- CrossAppDomainChannel.cs
- HttpProfileBase.cs
- CatalogZoneBase.cs
- CultureMapper.cs
- DrawingContextDrawingContextWalker.cs
- NetNamedPipeBinding.cs
- OleDbParameter.cs
- FixedDocument.cs
- Instrumentation.cs
- OperationFormatter.cs
- IListConverters.cs
- PasswordBox.cs
- XmlEntity.cs
- ObjectDisposedException.cs
- PixelShader.cs
- BrowserTree.cs
- CancellableEnumerable.cs
- MimeTextImporter.cs
- UriExt.cs
- ToggleProviderWrapper.cs
- ValidationErrorCollection.cs
- Separator.cs
- TableItemProviderWrapper.cs