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
- Label.cs
- MatrixTransform.cs
- DataGridItemEventArgs.cs
- PropVariant.cs
- OutputCacheModule.cs
- AsyncStreamReader.cs
- IISMapPath.cs
- CoordinationService.cs
- FrameworkContentElementAutomationPeer.cs
- TraversalRequest.cs
- DefaultDialogButtons.cs
- DateTime.cs
- QilParameter.cs
- PublisherMembershipCondition.cs
- Compiler.cs
- HtmlInputSubmit.cs
- ContainerParagraph.cs
- ExpressionDumper.cs
- CodeDirectoryCompiler.cs
- DesignerActionItemCollection.cs
- PeerTransportElement.cs
- BehaviorEditorPart.cs
- httpstaticobjectscollection.cs
- BlurEffect.cs
- RoutedEventValueSerializer.cs
- MessagePropertyDescription.cs
- TextRangeAdaptor.cs
- StaticTextPointer.cs
- UpdateExpressionVisitor.cs
- BulletedListEventArgs.cs
- streamingZipPartStream.cs
- Vector3D.cs
- TogglePatternIdentifiers.cs
- XXXInfos.cs
- ComponentResourceKey.cs
- StructuralCache.cs
- ConnectorDragDropGlyph.cs
- ValuePattern.cs
- SHA1CryptoServiceProvider.cs
- ErrorWrapper.cs
- CheckBoxField.cs
- TransformConverter.cs
- DesignerSelectionListAdapter.cs
- HttpServerVarsCollection.cs
- DataBindingCollection.cs
- SafeHandles.cs
- ForwardPositionQuery.cs
- SqlDataSourceCustomCommandPanel.cs
- InternalConfigRoot.cs
- PartDesigner.cs
- PrimitiveXmlSerializers.cs
- ExpressionBuilderContext.cs
- RightNameExpirationInfoPair.cs
- MsmqAppDomainProtocolHandler.cs
- CodeDomLoader.cs
- GeneralTransform3DTo2D.cs
- ConfigDefinitionUpdates.cs
- MailHeaderInfo.cs
- GradientSpreadMethodValidation.cs
- BindingMemberInfo.cs
- BamlLocalizableResourceKey.cs
- NamespaceMapping.cs
- SHA384Managed.cs
- Crc32Helper.cs
- CanonicalFormWriter.cs
- XamlInt32CollectionSerializer.cs
- TemplatePartAttribute.cs
- StylusDownEventArgs.cs
- PermissionSet.cs
- WpfPayload.cs
- CalendarDataBindingHandler.cs
- Compiler.cs
- TimeStampChecker.cs
- AndAlso.cs
- RegexBoyerMoore.cs
- Line.cs
- FormViewCommandEventArgs.cs
- RelationshipDetailsCollection.cs
- SafeEventLogReadHandle.cs
- BasePattern.cs
- MgmtConfigurationRecord.cs
- DBSqlParserTable.cs
- StylusOverProperty.cs
- HelpProvider.cs
- UIHelper.cs
- XPathSingletonIterator.cs
- ManifestResourceInfo.cs
- ReflectionUtil.cs
- SqlServer2KCompatibilityAnnotation.cs
- ConfigurationSection.cs
- RegexMatch.cs
- SqlClientMetaDataCollectionNames.cs
- DoWorkEventArgs.cs
- CodeExporter.cs
- FaultConverter.cs
- DataServices.cs
- VectorCollectionConverter.cs
- DBNull.cs
- MachineKeySection.cs
- NameValuePermission.cs