Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- CollectionType.cs
- ConfigurationException.cs
- PathGeometry.cs
- AccessorTable.cs
- DocumentGrid.cs
- StrokeRenderer.cs
- ComponentConverter.cs
- TailPinnedEventArgs.cs
- UnaryNode.cs
- PieceDirectory.cs
- DataSetSchema.cs
- Error.cs
- CultureTableRecord.cs
- ObjectKeyFrameCollection.cs
- NGCSerializerAsync.cs
- XamlContextStack.cs
- TextChangedEventArgs.cs
- ExtractCollection.cs
- _FtpDataStream.cs
- SerializationObjectManager.cs
- BitmapCodecInfo.cs
- DataSpaceManager.cs
- SelectionItemProviderWrapper.cs
- TimeIntervalCollection.cs
- Bold.cs
- ObjectContextServiceProvider.cs
- WrapPanel.cs
- TcpTransportBindingElement.cs
- HttpRequestCacheValidator.cs
- SqlDataSourceDesigner.cs
- DashStyles.cs
- List.cs
- DataGridColumnEventArgs.cs
- XmlStreamStore.cs
- Operator.cs
- XmlQuerySequence.cs
- DesignerCategoryAttribute.cs
- TypeUtil.cs
- DataGridViewDataConnection.cs
- OrderByExpression.cs
- FormsAuthenticationModule.cs
- EncodingTable.cs
- LocationSectionRecord.cs
- RegistrySecurity.cs
- WebAdminConfigurationHelper.cs
- ExternalCalls.cs
- FormViewDeletedEventArgs.cs
- GPPOINT.cs
- StaticExtensionConverter.cs
- JavaScriptObjectDeserializer.cs
- ClusterRegistryConfigurationProvider.cs
- TextParagraphCache.cs
- CounterCreationDataCollection.cs
- RegexRunner.cs
- DataGridViewRowCollection.cs
- WebPartAuthorizationEventArgs.cs
- coordinator.cs
- UriTemplateVariablePathSegment.cs
- XmlSchemaComplexType.cs
- SchemaElementLookUpTable.cs
- DataGridViewMethods.cs
- DictionaryEntry.cs
- CodeLinePragma.cs
- RayMeshGeometry3DHitTestResult.cs
- DataMemberFieldConverter.cs
- TextRunCache.cs
- ModelItem.cs
- RegisteredHiddenField.cs
- XmlSchemaAttributeGroup.cs
- Vector3DValueSerializer.cs
- JobPageOrder.cs
- AxParameterData.cs
- safesecurityhelperavalon.cs
- ComplexPropertyEntry.cs
- BamlResourceContent.cs
- IndexedEnumerable.cs
- URL.cs
- HashAlgorithm.cs
- ReaderOutput.cs
- DbConnectionStringBuilder.cs
- TextFormatter.cs
- FormsIdentity.cs
- Listbox.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ReferencedType.cs
- _NetworkingPerfCounters.cs
- SingleTagSectionHandler.cs
- ExtendedPropertyDescriptor.cs
- FrameworkContentElement.cs
- RegistrationServices.cs
- InvokeWebService.cs
- CodePropertyReferenceExpression.cs
- HttpModulesSection.cs
- Binding.cs
- CallbackHandler.cs
- TypeConverterHelper.cs
- AutomationPropertyInfo.cs
- SamlDoNotCacheCondition.cs
- ZipArchive.cs
- ClickablePoint.cs