Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ConfigurationPermission.cs
- OneOfScalarConst.cs
- GridViewRowCollection.cs
- Emitter.cs
- PartialList.cs
- InteropBitmapSource.cs
- ColorMap.cs
- TdsParserStateObject.cs
- X509Utils.cs
- TemplateField.cs
- StructuredCompositeActivityDesigner.cs
- Stack.cs
- ExpressionBinding.cs
- TypedElement.cs
- Stackframe.cs
- BypassElement.cs
- DBConnection.cs
- StylusPlugin.cs
- ISFTagAndGuidCache.cs
- ImageMetadata.cs
- SpecialFolderEnumConverter.cs
- ClientSettingsSection.cs
- MatrixStack.cs
- ParameterModifier.cs
- TextEmbeddedObject.cs
- infer.cs
- XslAst.cs
- RegisteredScript.cs
- UTF7Encoding.cs
- TextMetrics.cs
- TableDetailsCollection.cs
- XmlSchemaAnyAttribute.cs
- PathData.cs
- TableDetailsCollection.cs
- BuildDependencySet.cs
- ToolStripPanelRow.cs
- RuntimeResourceSet.cs
- HttpApplication.cs
- XmlSerializerNamespaces.cs
- OLEDB_Util.cs
- ObjectDisposedException.cs
- WindowsRebar.cs
- HandlerFactoryWrapper.cs
- SamlAuthorityBinding.cs
- InputLanguage.cs
- UnsafeNativeMethods.cs
- NullableFloatSumAggregationOperator.cs
- TypeSystem.cs
- NamespaceCollection.cs
- FakeModelItemImpl.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- FontSourceCollection.cs
- IntegerValidatorAttribute.cs
- DataServiceRequestException.cs
- SynchronizationContext.cs
- ImageUrlEditor.cs
- InheritanceContextChangedEventManager.cs
- WebConfigurationHost.cs
- CircleHotSpot.cs
- ServerIdentity.cs
- NullExtension.cs
- Span.cs
- Int16.cs
- PasswordDeriveBytes.cs
- SecurityPolicySection.cs
- TextEvent.cs
- HitTestResult.cs
- InternalsVisibleToAttribute.cs
- IdentifierCollection.cs
- MetaForeignKeyColumn.cs
- StrokeIntersection.cs
- HandlerMappingMemo.cs
- Figure.cs
- DoWhile.cs
- DockAndAnchorLayout.cs
- ProvideValueServiceProvider.cs
- AssemblyBuilder.cs
- XmlNavigatorStack.cs
- DesignBindingConverter.cs
- DesigntimeLicenseContextSerializer.cs
- GlyphRunDrawing.cs
- CaseInsensitiveOrdinalStringComparer.cs
- FormViewDeletedEventArgs.cs
- PointCollection.cs
- LineUtil.cs
- WebCategoryAttribute.cs
- Cursor.cs
- TypeElementCollection.cs
- ContentPlaceHolder.cs
- InternalDispatchObject.cs
- xmlglyphRunInfo.cs
- Hash.cs
- ResourceExpressionBuilder.cs
- ListViewItem.cs
- ReflectionHelper.cs
- DateTimeFormatInfoScanner.cs
- ByteStream.cs
- HttpWrapper.cs
- ClientSettingsSection.cs
- GlyphShapingProperties.cs