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
- SqlCacheDependencyDatabase.cs
- XmlSchemaInfo.cs
- TextSegment.cs
- ContravarianceAdapter.cs
- TraceRecord.cs
- Triplet.cs
- CryptoKeySecurity.cs
- CounterCreationDataCollection.cs
- NativeMethods.cs
- InkCanvasInnerCanvas.cs
- DeviceContexts.cs
- OdbcDataAdapter.cs
- DtcInterfaces.cs
- CacheDict.cs
- CacheChildrenQuery.cs
- CompositeKey.cs
- SerializerProvider.cs
- MetadataArtifactLoaderResource.cs
- CfgRule.cs
- ProvidePropertyAttribute.cs
- DataBoundControlAdapter.cs
- SpellCheck.cs
- MemoryResponseElement.cs
- EmbeddedObject.cs
- TypeUsage.cs
- Identity.cs
- ExpressionPrefixAttribute.cs
- altserialization.cs
- MatrixIndependentAnimationStorage.cs
- CheckedListBox.cs
- SelectionChangedEventArgs.cs
- StylusCaptureWithinProperty.cs
- ClientScriptManager.cs
- IsolationInterop.cs
- DiscardableAttribute.cs
- ToolboxBitmapAttribute.cs
- DataServiceStreamResponse.cs
- PositiveTimeSpanValidator.cs
- InputLanguageProfileNotifySink.cs
- HtmlLink.cs
- EntityParameterCollection.cs
- XPathEmptyIterator.cs
- ByteAnimationBase.cs
- Matrix3DConverter.cs
- DataGridRow.cs
- SqlDataSourceQuery.cs
- CacheHelper.cs
- EllipticalNodeOperations.cs
- Line.cs
- XPathDocumentIterator.cs
- FrugalMap.cs
- WorkflowServiceInstance.cs
- LoginName.cs
- InfiniteTimeSpanConverter.cs
- Figure.cs
- CodeAccessPermission.cs
- HttpWriter.cs
- MaskInputRejectedEventArgs.cs
- BoundField.cs
- SqlDataSource.cs
- Span.cs
- ModuleBuilderData.cs
- IisTraceWebEventProvider.cs
- PermissionSetTriple.cs
- MasterPage.cs
- XhtmlBasicObjectListAdapter.cs
- ProcessThreadCollection.cs
- RtfToken.cs
- DateTimeParse.cs
- CacheHelper.cs
- GlobalEventManager.cs
- GroupBox.cs
- HwndSourceKeyboardInputSite.cs
- BindingContext.cs
- KernelTypeValidation.cs
- TextRangeBase.cs
- StreamBodyWriter.cs
- BitmapCodecInfoInternal.cs
- NotConverter.cs
- ToolStripManager.cs
- LineUtil.cs
- TagNameToTypeMapper.cs
- ActiveXContainer.cs
- GeneralTransform3DTo2DTo3D.cs
- RemotingException.cs
- VersionUtil.cs
- SecurityAlgorithmSuite.cs
- RequestCacheValidator.cs
- AppSettingsReader.cs
- DataControlField.cs
- DataPointer.cs
- TableLayoutSettingsTypeConverter.cs
- DataGridViewSelectedColumnCollection.cs
- TypeConverterAttribute.cs
- LineUtil.cs
- PermissionAttributes.cs
- backend.cs
- FontUnit.cs
- ExceptionValidationRule.cs
- WebConfigurationHostFileChange.cs