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
- ExpressionStringBuilder.cs
- DataSourceCollectionBase.cs
- HeaderUtility.cs
- ToolStripDropDownButton.cs
- MediaPlayer.cs
- CheckableControlBaseAdapter.cs
- Merger.cs
- X509IssuerSerialKeyIdentifierClause.cs
- VScrollProperties.cs
- CodeTypeDeclaration.cs
- AffineTransform3D.cs
- RemotingConfiguration.cs
- IWorkflowDebuggerService.cs
- WasAdminWrapper.cs
- IsolatedStoragePermission.cs
- CharAnimationBase.cs
- DataGridViewDataErrorEventArgs.cs
- x509utils.cs
- DataControlFieldHeaderCell.cs
- SinglePageViewer.cs
- BitArray.cs
- CustomDictionarySources.cs
- VerificationException.cs
- CachedTypeface.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SqlBuffer.cs
- XmlElementList.cs
- PagesSection.cs
- SessionStateUtil.cs
- TdsEnums.cs
- DataServiceQueryException.cs
- DragDrop.cs
- CodeCommentStatementCollection.cs
- ProcessManager.cs
- FormViewDesigner.cs
- COM2TypeInfoProcessor.cs
- DrawItemEvent.cs
- CompareValidator.cs
- XmlQueryContext.cs
- XmlCharCheckingReader.cs
- UniqueConstraint.cs
- HtmlEncodedRawTextWriter.cs
- ConsoleCancelEventArgs.cs
- XmlSchema.cs
- NativeMethods.cs
- AnimationClock.cs
- DataTableReader.cs
- SystemIPGlobalStatistics.cs
- AppSettingsExpressionBuilder.cs
- ResourceExpressionBuilder.cs
- BaseProcessProtocolHandler.cs
- NonSerializedAttribute.cs
- RemotingClientProxy.cs
- MultipleViewPattern.cs
- SqlTopReducer.cs
- DataTableTypeConverter.cs
- Table.cs
- DrawItemEvent.cs
- ServiceNameElementCollection.cs
- ObjectCache.cs
- EpmCustomContentWriterNodeData.cs
- PackageRelationshipSelector.cs
- PackagingUtilities.cs
- PictureBox.cs
- ToolStripArrowRenderEventArgs.cs
- SqlBuffer.cs
- StaticResourceExtension.cs
- IsolatedStorage.cs
- BrowserCapabilitiesCompiler.cs
- DBAsyncResult.cs
- SplineKeyFrames.cs
- Activator.cs
- ClaimTypeRequirement.cs
- DbProviderSpecificTypePropertyAttribute.cs
- CodeAttributeDeclaration.cs
- TdsValueSetter.cs
- EventListenerClientSide.cs
- SqlMethodAttribute.cs
- PersonalizationEntry.cs
- DateTimeConverter2.cs
- DocumentGrid.cs
- ChannelSinkStacks.cs
- SemanticResultKey.cs
- MetadataItemSerializer.cs
- PtsPage.cs
- MenuCommand.cs
- TraceLevelHelper.cs
- NamespaceEmitter.cs
- AddressingVersion.cs
- DataAdapter.cs
- SQLString.cs
- HttpCachePolicyBase.cs
- Timer.cs
- SqlDuplicator.cs
- WebConfigurationHost.cs
- RoutedEventValueSerializer.cs
- CompilerError.cs
- SqlConnectionStringBuilder.cs
- ToolTipAutomationPeer.cs
- SystemInformation.cs