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
- TimeSpan.cs
- AdapterUtil.cs
- Wizard.cs
- CroppedBitmap.cs
- BindingSource.cs
- XmlnsCache.cs
- COM2ExtendedBrowsingHandler.cs
- InkSerializer.cs
- ImageListStreamer.cs
- Main.cs
- SourceLineInfo.cs
- KeyValuePairs.cs
- NominalTypeEliminator.cs
- TypeResolvingOptionsAttribute.cs
- LinqDataSourceValidationException.cs
- ListParaClient.cs
- DataContractJsonSerializer.cs
- AsymmetricCryptoHandle.cs
- SortDescriptionCollection.cs
- DocumentCollection.cs
- OleDbEnumerator.cs
- TemplateColumn.cs
- PerformanceCounterNameAttribute.cs
- OracleCommandBuilder.cs
- XPathNodePointer.cs
- RootDesignerSerializerAttribute.cs
- CodeArrayCreateExpression.cs
- UnsafeNativeMethods.cs
- Vector3DValueSerializer.cs
- EditorZone.cs
- UpdateExpressionVisitor.cs
- Graph.cs
- ChtmlTextWriter.cs
- Geometry3D.cs
- MultiSelectRootGridEntry.cs
- PropertyChangedEventManager.cs
- WorkflowOperationContext.cs
- HWStack.cs
- RoleProviderPrincipal.cs
- DropTarget.cs
- DataServiceRequestOfT.cs
- CustomAttributeSerializer.cs
- EntitySqlQueryState.cs
- Int32CollectionValueSerializer.cs
- IsolatedStorageFileStream.cs
- BulletChrome.cs
- MemberAccessException.cs
- ConfigXmlElement.cs
- StructuredType.cs
- ItemCheckEvent.cs
- BufferedGraphicsManager.cs
- DrawingCollection.cs
- TreeNodeCollection.cs
- ProxyWebPart.cs
- RegexCapture.cs
- PrivilegeNotHeldException.cs
- XmlNavigatorStack.cs
- PageFunction.cs
- formatter.cs
- IssuedTokenClientBehaviorsElement.cs
- Separator.cs
- NumericPagerField.cs
- RootProfilePropertySettingsCollection.cs
- StatusStrip.cs
- TextBounds.cs
- OdbcCommand.cs
- ResourceSetExpression.cs
- ViewStateModeByIdAttribute.cs
- TrackingCondition.cs
- DeferredTextReference.cs
- TraceSwitch.cs
- EncodingNLS.cs
- lengthconverter.cs
- TextContainerChangeEventArgs.cs
- String.cs
- PropertyRecord.cs
- SplitterPanel.cs
- SafeRegistryKey.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XmlElementCollection.cs
- InternalRelationshipCollection.cs
- CapabilitiesRule.cs
- TextTreeUndoUnit.cs
- LinearKeyFrames.cs
- SqlTypeConverter.cs
- ProtocolsInstallComponent.cs
- pingexception.cs
- ComboBoxItem.cs
- CompiledQuery.cs
- ArgumentOutOfRangeException.cs
- SelectionManager.cs
- _ConnectionGroup.cs
- TileBrush.cs
- DateTimeOffsetAdapter.cs
- ClosableStream.cs
- ResourceReferenceExpression.cs
- Point4DValueSerializer.cs
- UnmanagedBitmapWrapper.cs
- LoginUtil.cs
- InputDevice.cs