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
- HtmlTextArea.cs
- newinstructionaction.cs
- FixedPageStructure.cs
- CodeIterationStatement.cs
- RawMouseInputReport.cs
- EncryptedType.cs
- DbException.cs
- ReceiveParametersContent.cs
- KeyboardDevice.cs
- cryptoapiTransform.cs
- XmlUtil.cs
- MultiAsyncResult.cs
- HandlerElement.cs
- BuildDependencySet.cs
- HScrollProperties.cs
- RichTextBoxContextMenu.cs
- SqlCommand.cs
- RequestSecurityTokenResponseCollection.cs
- SqlException.cs
- HttpConfigurationContext.cs
- BaseTemplateCodeDomTreeGenerator.cs
- TdsParameterSetter.cs
- HuffModule.cs
- Label.cs
- CharacterMetrics.cs
- HttpRequestWrapper.cs
- CollectionViewGroupInternal.cs
- ExpandedWrapper.cs
- Token.cs
- SqlDataSourceConfigureFilterForm.cs
- ConfigurationProperty.cs
- KeyInterop.cs
- ProfileProvider.cs
- BoolExpression.cs
- DataGridItemEventArgs.cs
- Walker.cs
- RuleSetBrowserDialog.cs
- MainMenu.cs
- DbConnectionPool.cs
- activationcontext.cs
- DescriptionAttribute.cs
- EventRouteFactory.cs
- RadioButtonPopupAdapter.cs
- MemberHolder.cs
- CookieHandler.cs
- Rotation3D.cs
- DataObject.cs
- XmlReaderDelegator.cs
- ObfuscateAssemblyAttribute.cs
- MouseEvent.cs
- HtmlInputButton.cs
- TableRowGroup.cs
- TextFormatterImp.cs
- XsdDuration.cs
- login.cs
- DataGridViewComboBoxEditingControl.cs
- CheckBox.cs
- SmtpReplyReader.cs
- EventArgs.cs
- HttpCookie.cs
- TcpClientCredentialType.cs
- XmlMapping.cs
- RepeaterCommandEventArgs.cs
- WindowsListViewGroupHelper.cs
- CrossSiteScriptingValidation.cs
- FixedLineResult.cs
- ScriptHandlerFactory.cs
- DataTablePropertyDescriptor.cs
- ConfigurationLockCollection.cs
- TextBoxView.cs
- ArgumentOutOfRangeException.cs
- X509Extension.cs
- XPathEmptyIterator.cs
- MediaContext.cs
- WorkerRequest.cs
- HyperLinkField.cs
- PerformanceCounterLib.cs
- CoreSwitches.cs
- CodeDomSerializerBase.cs
- CheckBoxList.cs
- hwndwrapper.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- SettingsBindableAttribute.cs
- StringDictionaryWithComparer.cs
- DetailsViewDeleteEventArgs.cs
- DefaultMemberAttribute.cs
- ReadOnlyDataSourceView.cs
- ComIntegrationManifestGenerator.cs
- ResourceSetExpression.cs
- FileDialogCustomPlace.cs
- UnsafeNativeMethods.cs
- BitStack.cs
- CopyNamespacesAction.cs
- SequentialUshortCollection.cs
- BooleanAnimationUsingKeyFrames.cs
- TextRangeProviderWrapper.cs
- DesignTimeParseData.cs
- TemplateControl.cs
- DefaultValueAttribute.cs
- XmlSchemaObject.cs