Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ColumnTypeConverter.cs
- SystemIcmpV4Statistics.cs
- FontCollection.cs
- GridViewActionList.cs
- AssociatedControlConverter.cs
- LOSFormatter.cs
- ToolStripRenderEventArgs.cs
- SetState.cs
- BitStream.cs
- DoWorkEventArgs.cs
- DataGridViewComponentPropertyGridSite.cs
- HtmlInputReset.cs
- MetadataArtifactLoaderComposite.cs
- DiscardableAttribute.cs
- SimplePropertyEntry.cs
- X509CertificateCollection.cs
- Merger.cs
- CompositionAdorner.cs
- DataViewSetting.cs
- GridViewRowEventArgs.cs
- DataBoundControl.cs
- SQLBytesStorage.cs
- ReflectionPermission.cs
- TheQuery.cs
- Region.cs
- RootAction.cs
- ObfuscateAssemblyAttribute.cs
- SafeHGlobalHandleCritical.cs
- UnionCqlBlock.cs
- CollectionDataContractAttribute.cs
- IndicCharClassifier.cs
- Rotation3DAnimationBase.cs
- StrokeNode.cs
- WhiteSpaceTrimStringConverter.cs
- DateTimeFormat.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- SiteMapPath.cs
- PopupEventArgs.cs
- SQLMoneyStorage.cs
- Parallel.cs
- ControlParameter.cs
- NativeMethods.cs
- Collection.cs
- XmlAttributeHolder.cs
- CodeTypeDelegate.cs
- HttpConfigurationSystem.cs
- WorkflowCreationContext.cs
- ServiceReflector.cs
- Exceptions.cs
- TraceFilter.cs
- _HeaderInfoTable.cs
- PageParserFilter.cs
- Lookup.cs
- DispatcherHookEventArgs.cs
- ValueCollectionParameterReader.cs
- ArcSegment.cs
- URL.cs
- XamlStyleSerializer.cs
- EqualityComparer.cs
- ExportOptions.cs
- IUnknownConstantAttribute.cs
- SrgsOneOf.cs
- QueryReaderSettings.cs
- SessionStateItemCollection.cs
- Relationship.cs
- TimeZoneNotFoundException.cs
- DefaultPropertyAttribute.cs
- ExtensionElementCollection.cs
- StructuralObject.cs
- ConfigurationValidatorAttribute.cs
- MemberPathMap.cs
- DataTableExtensions.cs
- ListManagerBindingsCollection.cs
- SortDescription.cs
- PositiveTimeSpanValidator.cs
- HeaderElement.cs
- SettingsProviderCollection.cs
- TypeDelegator.cs
- AddInToken.cs
- EncoderFallback.cs
- PropertyDescriptor.cs
- DataGridCellInfo.cs
- TextSpan.cs
- EntityDataSourceSelectedEventArgs.cs
- InvocationExpression.cs
- NameValuePair.cs
- DomainConstraint.cs
- AddInControllerImpl.cs
- SqlDelegatedTransaction.cs
- MetadataArtifactLoaderComposite.cs
- VisualStyleTypesAndProperties.cs
- BaseHashHelper.cs
- ValueProviderWrapper.cs
- ThreadAbortException.cs
- CalendarBlackoutDatesCollection.cs
- TraceData.cs
- ClockGroup.cs
- Timeline.cs
- ImmutablePropertyDescriptorGridEntry.cs
- GetRecipientRequest.cs