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
- DefaultPrintController.cs
- Operand.cs
- BinaryConverter.cs
- DependencyPropertyKind.cs
- RequestQueryParser.cs
- OleDbInfoMessageEvent.cs
- SqlUDTStorage.cs
- WindowsImpersonationContext.cs
- SecureUICommand.cs
- WindowShowOrOpenTracker.cs
- UInt32Storage.cs
- SqlConnectionManager.cs
- DynamicPropertyHolder.cs
- Codec.cs
- ThumbButtonInfo.cs
- TransformValueSerializer.cs
- IndexedString.cs
- FactoryRecord.cs
- PopupRootAutomationPeer.cs
- Message.cs
- IisTraceWebEventProvider.cs
- BidPrivateBase.cs
- ShutDownListener.cs
- XmlSchemaException.cs
- Int64.cs
- ScrollBarRenderer.cs
- ThousandthOfEmRealDoubles.cs
- CapabilitiesRule.cs
- AuthenticationSection.cs
- OleCmdHelper.cs
- ListViewItem.cs
- datacache.cs
- MediaCommands.cs
- sitestring.cs
- FormViewInsertedEventArgs.cs
- ListBindableAttribute.cs
- ResourcePermissionBase.cs
- SQLMembershipProvider.cs
- HostedNamedPipeTransportManager.cs
- ValueExpressions.cs
- MeshGeometry3D.cs
- PerspectiveCamera.cs
- BaseAddressPrefixFilterElement.cs
- DebugView.cs
- UnmanagedMemoryStream.cs
- SoapEnumAttribute.cs
- XamlVector3DCollectionSerializer.cs
- RemotingAttributes.cs
- OdbcDataReader.cs
- CodeParameterDeclarationExpressionCollection.cs
- Configuration.cs
- GifBitmapEncoder.cs
- BookmarkTable.cs
- SchemaElementDecl.cs
- NamedServiceModelExtensionCollectionElement.cs
- XmlSchemaImporter.cs
- MailMessage.cs
- SqlNotificationEventArgs.cs
- XmlUTF8TextWriter.cs
- UrlMappingsModule.cs
- WindowsGraphics2.cs
- x509store.cs
- CodeAttachEventStatement.cs
- SafeNativeMethods.cs
- DesignerAutoFormat.cs
- RenderTargetBitmap.cs
- Point3DCollectionConverter.cs
- PromptBuilder.cs
- MissingFieldException.cs
- ApplicationContext.cs
- ItemCollection.cs
- Viewport3DVisual.cs
- PointIndependentAnimationStorage.cs
- NameValuePair.cs
- RandomNumberGenerator.cs
- ItemTypeToolStripMenuItem.cs
- CompilerInfo.cs
- ObjectListFieldsPage.cs
- Track.cs
- DetailsViewDeletedEventArgs.cs
- TextStore.cs
- XslVisitor.cs
- WorkflowOperationInvoker.cs
- TypeElement.cs
- filewebrequest.cs
- ContentFilePart.cs
- NavigationFailedEventArgs.cs
- Rect3D.cs
- ChangePassword.cs
- XmlCountingReader.cs
- WebDisplayNameAttribute.cs
- MouseBinding.cs
- DescendantQuery.cs
- MetaData.cs
- HtmlFormParameterWriter.cs
- AuthenticationService.cs
- ObjectListDataBindEventArgs.cs
- GenericTransactionFlowAttribute.cs
- HotSpotCollection.cs
- DefaultAssemblyResolver.cs