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
- FormViewModeEventArgs.cs
- MatchingStyle.cs
- CornerRadiusConverter.cs
- IpcChannel.cs
- ControlParameter.cs
- NumberSubstitution.cs
- TreeNode.cs
- CommonGetThemePartSize.cs
- HijriCalendar.cs
- ResolveNameEventArgs.cs
- InputScopeNameConverter.cs
- RootAction.cs
- SwitchLevelAttribute.cs
- AssociationTypeEmitter.cs
- CreateParams.cs
- HatchBrush.cs
- SystemInfo.cs
- ExecutionEngineException.cs
- FilterQueryOptionExpression.cs
- DefaultAssemblyResolver.cs
- AstTree.cs
- WinFormsSecurity.cs
- ForwardPositionQuery.cs
- SqlCacheDependencyDatabaseCollection.cs
- ServiceRouteHandler.cs
- EventRouteFactory.cs
- WindowsSlider.cs
- ProfileGroupSettingsCollection.cs
- ProtocolViolationException.cs
- ConfigXmlComment.cs
- EditingCoordinator.cs
- SQlBooleanStorage.cs
- RegexRunner.cs
- BitmapEffect.cs
- KeyValuePair.cs
- ViewSimplifier.cs
- XmlSchemaType.cs
- RouteData.cs
- OleDbCommand.cs
- Ipv6Element.cs
- RecognizedAudio.cs
- ListBase.cs
- SystemDiagnosticsSection.cs
- ExtenderHelpers.cs
- ListParaClient.cs
- EntryWrittenEventArgs.cs
- SerializationEventsCache.cs
- coordinatorscratchpad.cs
- HistoryEventArgs.cs
- DataGridTextBoxColumn.cs
- Vertex.cs
- HttpRequest.cs
- Encoding.cs
- ControlPropertyNameConverter.cs
- PassportAuthenticationModule.cs
- PackageRelationshipCollection.cs
- AnnotationAuthorChangedEventArgs.cs
- CodeStatementCollection.cs
- ProxyWebPartConnectionCollection.cs
- HttpWebRequest.cs
- UTF32Encoding.cs
- EmptyControlCollection.cs
- PrimaryKeyTypeConverter.cs
- DataGridViewCellMouseEventArgs.cs
- ProxyGenerationError.cs
- OracleRowUpdatingEventArgs.cs
- ToolTip.cs
- XmlNodeComparer.cs
- SwitchElementsCollection.cs
- ColumnClickEvent.cs
- WebPartEditVerb.cs
- GlyphsSerializer.cs
- Visitors.cs
- FixedPage.cs
- basemetadatamappingvisitor.cs
- NaturalLanguageHyphenator.cs
- SchemaCollectionCompiler.cs
- WizardStepBase.cs
- SchemaEntity.cs
- safePerfProviderHandle.cs
- HttpCachePolicyElement.cs
- RoutedEvent.cs
- Label.cs
- CodeIterationStatement.cs
- SSmlParser.cs
- MetadataStore.cs
- BitSet.cs
- __Filters.cs
- BaseParagraph.cs
- SqlAliasesReferenced.cs
- IntSecurity.cs
- DescriptionCreator.cs
- ToolStripOverflowButton.cs
- Win32PrintDialog.cs
- VariantWrapper.cs
- NamedPermissionSet.cs
- HierarchicalDataTemplate.cs
- BrowsableAttribute.cs
- Wildcard.cs
- DbDataRecord.cs