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
- ConfigXmlWhitespace.cs
- DomainConstraint.cs
- FrameworkObject.cs
- TitleStyle.cs
- ReaderWriterLock.cs
- PatternMatcher.cs
- FunctionParameter.cs
- RegexCompilationInfo.cs
- SchemaNamespaceManager.cs
- FontFaceLayoutInfo.cs
- Rect.cs
- DBPropSet.cs
- SecurityUtils.cs
- ZoomPercentageConverter.cs
- UiaCoreApi.cs
- ListItemConverter.cs
- JsonDataContract.cs
- ProxyWebPartConnectionCollection.cs
- RunInstallerAttribute.cs
- TextDecoration.cs
- ContentAlignmentEditor.cs
- VirtualDirectoryMappingCollection.cs
- XmlNodeChangedEventArgs.cs
- DBNull.cs
- Run.cs
- BaseCodePageEncoding.cs
- SettingsPropertyValue.cs
- ClientSettingsStore.cs
- FontFamily.cs
- UIElement3D.cs
- MissingFieldException.cs
- WebBrowserContainer.cs
- AutomationPeer.cs
- SafeBitVector32.cs
- LineSegment.cs
- OutputScope.cs
- SqlDataSourceFilteringEventArgs.cs
- DataServiceResponse.cs
- CodeTryCatchFinallyStatement.cs
- XPathPatternBuilder.cs
- CheckBox.cs
- ChildrenQuery.cs
- TextParagraphProperties.cs
- TypeInitializationException.cs
- DispatcherExceptionFilterEventArgs.cs
- HtmlAnchor.cs
- OracleEncoding.cs
- SystemInfo.cs
- CodeCommentStatement.cs
- MediaContext.cs
- IdentityManager.cs
- ConfigurationConverterBase.cs
- HierarchicalDataTemplate.cs
- SettingsAttributeDictionary.cs
- WindowsIPAddress.cs
- FilteredSchemaElementLookUpTable.cs
- UpdatableWrapper.cs
- GroupBoxRenderer.cs
- DetailsViewActionList.cs
- ServerProtocol.cs
- WebPartEditVerb.cs
- ScaleTransform3D.cs
- SuppressMergeCheckAttribute.cs
- X509ChainPolicy.cs
- XmlWriter.cs
- InstanceDataCollection.cs
- TogglePatternIdentifiers.cs
- HashJoinQueryOperatorEnumerator.cs
- _Semaphore.cs
- FormView.cs
- VScrollBar.cs
- StandardOleMarshalObject.cs
- SerializerWriterEventHandlers.cs
- EdmConstants.cs
- DataControlFieldHeaderCell.cs
- ListViewUpdateEventArgs.cs
- ReflectPropertyDescriptor.cs
- SamlNameIdentifierClaimResource.cs
- DBSqlParserTableCollection.cs
- ValidationErrorCollection.cs
- ExtensionQuery.cs
- InternalResources.cs
- SurrogateSelector.cs
- RichTextBox.cs
- DoubleConverter.cs
- GridViewColumnCollection.cs
- SequenceDesignerAccessibleObject.cs
- SurrogateDataContract.cs
- SqlInternalConnectionTds.cs
- UpdateProgress.cs
- DataKeyCollection.cs
- XmlSchemaAnnotated.cs
- XmlAttributeCollection.cs
- CodeStatementCollection.cs
- ApplicationBuildProvider.cs
- Version.cs
- ConfigXmlText.cs
- codemethodreferenceexpression.cs
- PointValueSerializer.cs
- XmlTextReaderImpl.cs