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
- CompletedAsyncResult.cs
- TextEditorThreadLocalStore.cs
- TableColumn.cs
- InputMethodStateChangeEventArgs.cs
- PerfCounters.cs
- ProfileSettingsCollection.cs
- Delegate.cs
- GlobalAllocSafeHandle.cs
- HttpRawResponse.cs
- VerificationAttribute.cs
- BitArray.cs
- RawStylusInputReport.cs
- EdmScalarPropertyAttribute.cs
- BitmapEffectDrawing.cs
- DropSource.cs
- TagPrefixAttribute.cs
- SchemaMapping.cs
- DbDataRecord.cs
- FormClosingEvent.cs
- clipboard.cs
- QueryOptionExpression.cs
- ThreadExceptionDialog.cs
- MatrixUtil.cs
- ChtmlTextBoxAdapter.cs
- ControlUtil.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- HttpWebRequestElement.cs
- FreezableOperations.cs
- TraceSwitch.cs
- OutputCacheModule.cs
- IconHelper.cs
- WebHostUnsafeNativeMethods.cs
- EnvelopedSignatureTransform.cs
- VectorCollectionValueSerializer.cs
- UInt16Converter.cs
- FastEncoder.cs
- ExpressionBuilder.cs
- RadioButtonList.cs
- PageThemeCodeDomTreeGenerator.cs
- LogEntryHeaderSerializer.cs
- RotateTransform.cs
- ContentPlaceHolder.cs
- AvTrace.cs
- NestPullup.cs
- _AutoWebProxyScriptWrapper.cs
- SHA256.cs
- BaseUriHelper.cs
- XmlSchemaGroup.cs
- WebControl.cs
- NumericUpDownAccelerationCollection.cs
- XmlElementAttributes.cs
- InputLanguageSource.cs
- Expression.cs
- COM2ColorConverter.cs
- DateTimePickerDesigner.cs
- DictionaryGlobals.cs
- GridViewSelectEventArgs.cs
- TypeInitializationException.cs
- NativeRecognizer.cs
- XslAst.cs
- ServerValidateEventArgs.cs
- SchemaImporterExtensionElement.cs
- ProfileParameter.cs
- GridViewColumnHeaderAutomationPeer.cs
- HtmlElement.cs
- IgnoreFileBuildProvider.cs
- HtmlTernaryTree.cs
- GAC.cs
- Int16Storage.cs
- LayoutEditorPart.cs
- XmlDataFileEditor.cs
- EnumValidator.cs
- HTMLTextWriter.cs
- AssemblyBuilderData.cs
- FontStyle.cs
- SerializationAttributes.cs
- CapiNative.cs
- LocalizabilityAttribute.cs
- IndexOutOfRangeException.cs
- LocalizableAttribute.cs
- COM2ColorConverter.cs
- XsltQilFactory.cs
- CardSpaceSelector.cs
- AddingNewEventArgs.cs
- SocketException.cs
- TextServicesDisplayAttributePropertyRanges.cs
- IsolatedStorageFilePermission.cs
- SoapInteropTypes.cs
- SendMailErrorEventArgs.cs
- BitmapSizeOptions.cs
- DockingAttribute.cs
- GC.cs
- Matrix.cs
- ZipIOCentralDirectoryBlock.cs
- ReceiveContent.cs
- ProxyGenerationError.cs
- MarshalByValueComponent.cs
- ExpandCollapseProviderWrapper.cs
- PointLightBase.cs
- BitmapEffectCollection.cs