Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / ChangeInterceptorAttribute.cs / 1305376 / 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
- BooleanProjectedSlot.cs
- RtfControls.cs
- TextDecorationCollectionConverter.cs
- Process.cs
- StateMachineWorkflowDesigner.cs
- AccessibleObject.cs
- ControlBindingsCollection.cs
- MultipartContentParser.cs
- AggregateNode.cs
- UnsafeNativeMethodsMilCoreApi.cs
- AsyncStreamReader.cs
- SynthesizerStateChangedEventArgs.cs
- OutputCacheSection.cs
- MaskPropertyEditor.cs
- RegisterResponseInfo.cs
- ConditionCollection.cs
- DocobjHost.cs
- SoapIgnoreAttribute.cs
- WebPartEditorOkVerb.cs
- FontFaceLayoutInfo.cs
- SettingsPropertyWrongTypeException.cs
- ListViewItem.cs
- DtcInterfaces.cs
- TextRunCache.cs
- WinFormsSpinner.cs
- UIElementAutomationPeer.cs
- SetterBase.cs
- SqlProfileProvider.cs
- ConfigXmlElement.cs
- StandardBindingElementCollection.cs
- WindowsPen.cs
- XmlTextEncoder.cs
- Converter.cs
- AutomationElementCollection.cs
- Setter.cs
- BlobPersonalizationState.cs
- LayoutTableCell.cs
- ACL.cs
- TreeNodeStyleCollection.cs
- TypeViewSchema.cs
- TransformerInfoCollection.cs
- DataGridViewCellStyleConverter.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- BitmapEffectCollection.cs
- StorageTypeMapping.cs
- ApplicationProxyInternal.cs
- DrawingGroup.cs
- MouseWheelEventArgs.cs
- FloaterParagraph.cs
- JsonDeserializer.cs
- HostVisual.cs
- PenLineCapValidation.cs
- LinkClickEvent.cs
- TraceListeners.cs
- TimeSpanOrInfiniteValidator.cs
- GeneralTransform.cs
- FillRuleValidation.cs
- AuthorizationContext.cs
- FileDetails.cs
- ConfigurationManager.cs
- DescendantBaseQuery.cs
- WebPartsSection.cs
- SoapAttributeAttribute.cs
- DynamicMethod.cs
- UnknownWrapper.cs
- RegexCharClass.cs
- Compensation.cs
- PrintPreviewGraphics.cs
- localization.cs
- ClrProviderManifest.cs
- Visual3DCollection.cs
- CodeExporter.cs
- ControlDesigner.cs
- InternalControlCollection.cs
- ColumnWidthChangedEvent.cs
- PersonalizableTypeEntry.cs
- BamlCollectionHolder.cs
- CatchDesigner.xaml.cs
- MenuStrip.cs
- XamlGridLengthSerializer.cs
- MimeBasePart.cs
- NetMsmqSecurityMode.cs
- AsyncOperation.cs
- HierarchicalDataSourceConverter.cs
- PtsContext.cs
- LogArchiveSnapshot.cs
- WebPartDisplayModeCollection.cs
- EntityTemplateFactory.cs
- ZipIOExtraFieldZip64Element.cs
- OLEDB_Util.cs
- TextTreeTextElementNode.cs
- TemplatePropertyEntry.cs
- MessageRpc.cs
- ApplicationTrust.cs
- RTLAwareMessageBox.cs
- Statements.cs
- ResourceSetExpression.cs
- SoapObjectInfo.cs
- AlphaSortedEnumConverter.cs
- EUCJPEncoding.cs