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
- Main.cs
- Region.cs
- InProcStateClientManager.cs
- MeasurementDCInfo.cs
- InvalidComObjectException.cs
- validation.cs
- SqlDataReaderSmi.cs
- StorageFunctionMapping.cs
- PrimitiveXmlSerializers.cs
- WebServiceFault.cs
- SessionSwitchEventArgs.cs
- RelationshipDetailsCollection.cs
- FileEnumerator.cs
- MediaTimeline.cs
- VirtualizingPanel.cs
- NativeMethods.cs
- CursorConverter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- KnownBoxes.cs
- ClientOperation.cs
- IndexedDataBuffer.cs
- SubstitutionList.cs
- WindowsListViewGroupSubsetLink.cs
- Parser.cs
- AuthenticationService.cs
- GuidTagList.cs
- ExpandoObject.cs
- DesignerActionUIService.cs
- ClientUtils.cs
- FilterEventArgs.cs
- SiteOfOriginContainer.cs
- ZipPackage.cs
- CloseSequence.cs
- FunctionUpdateCommand.cs
- ControlParameter.cs
- XmlEntity.cs
- AlternateViewCollection.cs
- LongTypeConverter.cs
- SafeNativeMethods.cs
- BadImageFormatException.cs
- WeakHashtable.cs
- WriteableOnDemandStream.cs
- WebPartTransformerAttribute.cs
- AstTree.cs
- DBSchemaTable.cs
- ConfigXmlElement.cs
- Point3DConverter.cs
- UnsafeNativeMethods.cs
- EventToken.cs
- RecoverInstanceLocksCommand.cs
- XmlComment.cs
- UnknownBitmapDecoder.cs
- SpellerHighlightLayer.cs
- Vector3DAnimation.cs
- LabelAutomationPeer.cs
- LicenseProviderAttribute.cs
- selecteditemcollection.cs
- EditorPart.cs
- ViewManagerAttribute.cs
- DesignerSerializationVisibilityAttribute.cs
- CmsUtils.cs
- ListCollectionView.cs
- SoapAttributes.cs
- Mapping.cs
- TaskHelper.cs
- XamlTemplateSerializer.cs
- RelatedView.cs
- RadialGradientBrush.cs
- CodeDirectoryCompiler.cs
- NativeMethods.cs
- Unit.cs
- LoadWorkflowCommand.cs
- DataStreamFromComStream.cs
- XmlConvert.cs
- HMAC.cs
- NavigationExpr.cs
- DataSourceControlBuilder.cs
- PropertyTabAttribute.cs
- SqlCacheDependencySection.cs
- BitVector32.cs
- WorkflowPersistenceService.cs
- TypeHelper.cs
- Convert.cs
- Part.cs
- xmlfixedPageInfo.cs
- AssemblyResourceLoader.cs
- HandleValueEditor.cs
- CharacterMetricsDictionary.cs
- CustomPopupPlacement.cs
- MetadataCacheItem.cs
- MembershipUser.cs
- SoapIgnoreAttribute.cs
- DynamicVirtualDiscoSearcher.cs
- URLIdentityPermission.cs
- XPathBinder.cs
- Int16Animation.cs
- ComponentResourceKeyConverter.cs
- UrlAuthorizationModule.cs
- FixUpCollection.cs
- DerivedKeySecurityTokenStub.cs