Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- BasicCommandTreeVisitor.cs
- ImageListImageEditor.cs
- ToolStripSplitButton.cs
- IssuanceLicense.cs
- Utils.cs
- UiaCoreApi.cs
- ListViewDataItem.cs
- UserNamePasswordValidator.cs
- ZipIOLocalFileHeader.cs
- TargetException.cs
- OutputCacheProfileCollection.cs
- NativeMethods.cs
- ValidatedControlConverter.cs
- DrawItemEvent.cs
- NameSpaceExtractor.cs
- ValidationErrorCollection.cs
- StatusStrip.cs
- CompModSwitches.cs
- SecureStringHasher.cs
- TemplateAction.cs
- AsmxEndpointPickerExtension.cs
- DiagnosticTrace.cs
- FirstMatchCodeGroup.cs
- SmtpFailedRecipientsException.cs
- GridViewItemAutomationPeer.cs
- TableItemStyle.cs
- AssociatedControlConverter.cs
- HostSecurityManager.cs
- RefExpr.cs
- BatchParser.cs
- ClientConfigurationHost.cs
- ConfigurationManagerHelper.cs
- ConnectionPoolManager.cs
- BufferedStream.cs
- ClientTarget.cs
- SelectedGridItemChangedEvent.cs
- ComponentEditorPage.cs
- PipelineModuleStepContainer.cs
- DbCommandDefinition.cs
- RestHandlerFactory.cs
- PropertyManager.cs
- WinFormsUtils.cs
- DataQuery.cs
- MetadataArtifactLoaderResource.cs
- QilValidationVisitor.cs
- ReaderContextStackData.cs
- RowCache.cs
- ActivityTrace.cs
- EventSourceCreationData.cs
- WebBrowserSiteBase.cs
- AspNetSynchronizationContext.cs
- BuildProviderUtils.cs
- VisualTreeHelper.cs
- MediaContext.cs
- ToolStripMenuItemCodeDomSerializer.cs
- SimpleMailWebEventProvider.cs
- LeaseManager.cs
- ResXResourceReader.cs
- CompressionTransform.cs
- _SecureChannel.cs
- TransactionFilter.cs
- EmptyCollection.cs
- RegexCode.cs
- ElasticEase.cs
- MailAddress.cs
- WebHostedComPlusServiceHost.cs
- BeginGetFileNameFromUserRequest.cs
- SafeUserTokenHandle.cs
- StringFreezingAttribute.cs
- EntityDataSourceDesigner.cs
- DrawingAttributesDefaultValueFactory.cs
- MetaModel.cs
- WriterOutput.cs
- SystemResourceKey.cs
- SectionRecord.cs
- WrappedReader.cs
- TrackingAnnotationCollection.cs
- EntityConnectionStringBuilderItem.cs
- XPathSingletonIterator.cs
- DeviceSpecific.cs
- WindowShowOrOpenTracker.cs
- DataContractSerializerSection.cs
- EntityContainerEmitter.cs
- ContentElement.cs
- WeakEventManager.cs
- PointLightBase.cs
- ContractComponent.cs
- WindowsListViewScroll.cs
- CheckBoxPopupAdapter.cs
- Pen.cs
- NonVisualControlAttribute.cs
- TypeListConverter.cs
- ProcessHost.cs
- XmlFormatMapping.cs
- RootBuilder.cs
- Stroke.cs
- XmlBinaryReaderSession.cs
- SystemIcmpV6Statistics.cs
- TimeoutException.cs
- _UriSyntax.cs