Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / Script / Services / ScriptMethodAttribute.cs / 1 / ScriptMethodAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Script.Services { using System; using System.Security.Permissions; using System.Web; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), AttributeUsage(AttributeTargets.Method) ] public sealed class ScriptMethodAttribute : Attribute { private ResponseFormat _responseFormat; private bool _useHttpGet; private bool _xmlSerializeString; public ResponseFormat ResponseFormat { get { return _responseFormat; } set { _responseFormat = value; } } public bool UseHttpGet { get { return _useHttpGet; } set { _useHttpGet = value; } } public bool XmlSerializeString { get { return _xmlSerializeString; } set { _xmlSerializeString = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Script.Services { using System; using System.Security.Permissions; using System.Web; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), AttributeUsage(AttributeTargets.Method) ] public sealed class ScriptMethodAttribute : Attribute { private ResponseFormat _responseFormat; private bool _useHttpGet; private bool _xmlSerializeString; public ResponseFormat ResponseFormat { get { return _responseFormat; } set { _responseFormat = value; } } public bool UseHttpGet { get { return _useHttpGet; } set { _useHttpGet = value; } } public bool XmlSerializeString { get { return _xmlSerializeString; } set { _xmlSerializeString = value; } } } } // 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
- SchemaImporterExtensionElement.cs
- StreamReader.cs
- FixedSOMSemanticBox.cs
- PropertyItemInternal.cs
- PageSettings.cs
- ClientBuildManagerCallback.cs
- StubHelpers.cs
- RuntimeConfigurationRecord.cs
- Win32.cs
- NetSectionGroup.cs
- AutomationProperties.cs
- StateFinalizationActivity.cs
- DbDataReader.cs
- DynamicControlParameter.cs
- BlurBitmapEffect.cs
- EntityPropertyMappingAttribute.cs
- TreeChangeInfo.cs
- TemplateControlBuildProvider.cs
- HashAlgorithm.cs
- nulltextnavigator.cs
- RegisteredScript.cs
- XmlSignatureProperties.cs
- RemotingException.cs
- FileUtil.cs
- SqlDataSourceEnumerator.cs
- ErrorWebPart.cs
- SqlCommandSet.cs
- HtmlTitle.cs
- BackgroundFormatInfo.cs
- UnknownBitmapEncoder.cs
- FixedSOMTextRun.cs
- XmlTypeAttribute.cs
- PersistChildrenAttribute.cs
- HttpProfileBase.cs
- EarlyBoundInfo.cs
- PaginationProgressEventArgs.cs
- ArgumentsParser.cs
- SubqueryRules.cs
- GeneratedCodeAttribute.cs
- XsltInput.cs
- DatatypeImplementation.cs
- RefType.cs
- FixedDSBuilder.cs
- TypeBuilderInstantiation.cs
- SelectedDatesCollection.cs
- DecoderReplacementFallback.cs
- SRef.cs
- GenericEnumConverter.cs
- TextWriterTraceListener.cs
- EntityDataSourceSelectingEventArgs.cs
- HebrewNumber.cs
- OperationAbortedException.cs
- DBConcurrencyException.cs
- DefinitionUpdate.cs
- CompiledQueryCacheKey.cs
- DataView.cs
- AstTree.cs
- ModelVisual3D.cs
- Dispatcher.cs
- Transform3D.cs
- SQLUtility.cs
- RuntimeConfigLKG.cs
- PointLight.cs
- HostingEnvironmentWrapper.cs
- XNameTypeConverter.cs
- IDReferencePropertyAttribute.cs
- Section.cs
- TraceEventCache.cs
- SQLDouble.cs
- MemberProjectedSlot.cs
- Brush.cs
- BaseComponentEditor.cs
- GB18030Encoding.cs
- BitmapEffectDrawingContent.cs
- TreeNodeSelectionProcessor.cs
- AsynchronousChannel.cs
- TextRenderer.cs
- FrameworkContentElement.cs
- MetadataCache.cs
- StrokeRenderer.cs
- OpenCollectionAsyncResult.cs
- CompoundFileStorageReference.cs
- Rule.cs
- ScriptIgnoreAttribute.cs
- BinaryCommonClasses.cs
- ByteStreamMessageEncoder.cs
- TextEndOfLine.cs
- MostlySingletonList.cs
- CurrencyWrapper.cs
- TrimSurroundingWhitespaceAttribute.cs
- FileSystemEventArgs.cs
- TextDpi.cs
- FileIOPermission.cs
- Point4DValueSerializer.cs
- OdbcTransaction.cs
- ControlParameter.cs
- DataGridState.cs
- ExpressionBindingCollection.cs
- FontResourceCache.cs
- BaseDataListDesigner.cs