Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / ChangeInterceptorAttribute.cs / 1305376 / 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
- OneOfScalarConst.cs
- DebugView.cs
- AggregatePushdown.cs
- DeferredElementTreeState.cs
- PassportPrincipal.cs
- SizeAnimation.cs
- BinaryConverter.cs
- FormViewRow.cs
- MsmqIntegrationSecurityElement.cs
- BindingOperations.cs
- MessageQueueEnumerator.cs
- UserPreferenceChangingEventArgs.cs
- ControlCachePolicy.cs
- PriorityBinding.cs
- OrderByBuilder.cs
- FileRecordSequenceHelper.cs
- LayeredChannelFactory.cs
- ResourceAssociationType.cs
- OdbcException.cs
- PieceNameHelper.cs
- FixedStringLookup.cs
- SingleResultAttribute.cs
- OleDbErrorCollection.cs
- log.cs
- DataGridAddNewRow.cs
- CompilationUtil.cs
- DiscoveryClientReferences.cs
- CurrentChangedEventManager.cs
- Color.cs
- RuntimeConfigLKG.cs
- ConfigurationManagerHelper.cs
- SqlDataReader.cs
- PrintDialogException.cs
- StringDictionary.cs
- SafeNativeMethodsCLR.cs
- BufferedStream2.cs
- CacheEntry.cs
- TemplatedWizardStep.cs
- HtmlInputControl.cs
- WrappedIUnknown.cs
- UnmanagedMemoryStream.cs
- CustomErrorsSection.cs
- DataTrigger.cs
- MarkupCompiler.cs
- Label.cs
- MaskedTextProvider.cs
- DataGridViewColumnHeaderCell.cs
- MdImport.cs
- ChtmlPageAdapter.cs
- RightsManagementEncryptionTransform.cs
- RecordConverter.cs
- FixedPageAutomationPeer.cs
- Type.cs
- StringComparer.cs
- RemotingConfiguration.cs
- AQNBuilder.cs
- HostProtectionPermission.cs
- KeyConverter.cs
- Stylesheet.cs
- DNS.cs
- Visual3D.cs
- AdCreatedEventArgs.cs
- SessionEndedEventArgs.cs
- SqlDataSourceView.cs
- FormViewPageEventArgs.cs
- TrackingProvider.cs
- RawContentTypeMapper.cs
- ModuleBuilderData.cs
- CaseInsensitiveComparer.cs
- SplitterPanel.cs
- ContentHostHelper.cs
- AssemblyBuilder.cs
- WebPartZoneAutoFormat.cs
- HtmlAnchor.cs
- EncodingFallbackAwareXmlTextWriter.cs
- OdbcRowUpdatingEvent.cs
- RoleManagerModule.cs
- XDeferredAxisSource.cs
- ObjRef.cs
- FamilyTypeface.cs
- AmbientProperties.cs
- NameValueFileSectionHandler.cs
- formatstringdialog.cs
- DnsCache.cs
- PropertyValidationContext.cs
- URI.cs
- WCFBuildProvider.cs
- ListItemConverter.cs
- CustomError.cs
- QilName.cs
- StateMachineExecutionState.cs
- FileUpload.cs
- DbConvert.cs
- ComplexObject.cs
- CharEntityEncoderFallback.cs
- EncoderParameter.cs
- DataAccessor.cs
- FileLevelControlBuilderAttribute.cs
- NumericUpDown.cs
- DesignerCatalogPartChrome.cs