Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / Configuration / XhtmlConformanceSection.cs / 2 / XhtmlConformanceSection.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Configuration {
using System.Configuration;
using System.Security.Permissions;
/*
*/
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class XhtmlConformanceSection : ConfigurationSection {
private static ConfigurationPropertyCollection _properties;
internal const XhtmlConformanceMode DefaultMode = XhtmlConformanceMode.Transitional;
private static readonly ConfigurationProperty _propMode =
new ConfigurationProperty("mode",
typeof(XhtmlConformanceMode),
DefaultMode,
ConfigurationPropertyOptions.None);
static XhtmlConformanceSection() {
// Property initialization
_properties = new ConfigurationPropertyCollection();
_properties.Add(_propMode);
}
protected override ConfigurationPropertyCollection Properties {
get {
return _properties;
}
}
[ConfigurationProperty("mode", DefaultValue=DefaultMode)]
public XhtmlConformanceMode Mode {
get {
return (XhtmlConformanceMode)base[_propMode];
}
set {
base[_propMode] = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Configuration {
using System.Configuration;
using System.Security.Permissions;
/*
*/
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class XhtmlConformanceSection : ConfigurationSection {
private static ConfigurationPropertyCollection _properties;
internal const XhtmlConformanceMode DefaultMode = XhtmlConformanceMode.Transitional;
private static readonly ConfigurationProperty _propMode =
new ConfigurationProperty("mode",
typeof(XhtmlConformanceMode),
DefaultMode,
ConfigurationPropertyOptions.None);
static XhtmlConformanceSection() {
// Property initialization
_properties = new ConfigurationPropertyCollection();
_properties.Add(_propMode);
}
protected override ConfigurationPropertyCollection Properties {
get {
return _properties;
}
}
[ConfigurationProperty("mode", DefaultValue=DefaultMode)]
public XhtmlConformanceMode Mode {
get {
return (XhtmlConformanceMode)base[_propMode];
}
set {
base[_propMode] = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlWrappingReader.cs
- LoadWorkflowByKeyAsyncResult.cs
- GlobalDataBindingHandler.cs
- SqlDataSourceSelectingEventArgs.cs
- UrlMappingsModule.cs
- SqlVersion.cs
- Header.cs
- RangeBaseAutomationPeer.cs
- Function.cs
- ServicesSection.cs
- TypeReference.cs
- FigureParaClient.cs
- TextPattern.cs
- TextServicesProperty.cs
- InkPresenterAutomationPeer.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- CollectionBase.cs
- BatchWriter.cs
- ObjectMemberMapping.cs
- AdornerDecorator.cs
- RotateTransform.cs
- Int16Animation.cs
- BufferedReadStream.cs
- XappLauncher.cs
- WindowCollection.cs
- Point3DValueSerializer.cs
- XmlObjectSerializerWriteContext.cs
- ReadOnlyPropertyMetadata.cs
- TextEndOfParagraph.cs
- FontFamily.cs
- FlowDocumentReader.cs
- BamlRecordReader.cs
- DispatcherTimer.cs
- HtmlLink.cs
- SelectionRangeConverter.cs
- VisualBasicSettingsConverter.cs
- URL.cs
- FlagsAttribute.cs
- ClaimTypeElement.cs
- DataPointer.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- KnownTypeAttribute.cs
- HWStack.cs
- ContextStaticAttribute.cs
- Brush.cs
- EventLogTraceListener.cs
- baseshape.cs
- HostingEnvironmentWrapper.cs
- EnumType.cs
- SmiContextFactory.cs
- XamlSerializer.cs
- WindowsListView.cs
- OraclePermissionAttribute.cs
- FixedStringLookup.cs
- TimeSpan.cs
- DrawingBrush.cs
- LoginCancelEventArgs.cs
- PrimitiveCodeDomSerializer.cs
- MimeTypeAttribute.cs
- FunctionQuery.cs
- DebuggerAttributes.cs
- TypedReference.cs
- ScalarOps.cs
- TypeExtensionSerializer.cs
- IntSecurity.cs
- DataView.cs
- HashCodeCombiner.cs
- SQLDateTime.cs
- ListSortDescription.cs
- ToolZone.cs
- CommandArguments.cs
- WebPartUserCapability.cs
- ConstNode.cs
- WindowsAuthenticationModule.cs
- UserNameSecurityTokenProvider.cs
- XmlReader.cs
- XamlPointCollectionSerializer.cs
- TextCompositionManager.cs
- WarningException.cs
- DetailsView.cs
- DataRowExtensions.cs
- WebPartUtil.cs
- GeneralTransformGroup.cs
- ToolboxComponentsCreatingEventArgs.cs
- EventLog.cs
- XmlReader.cs
- XmlIterators.cs
- RC2CryptoServiceProvider.cs
- CompensationTokenData.cs
- HwndSubclass.cs
- OleDbReferenceCollection.cs
- TextEditorSpelling.cs
- ReferenceConverter.cs
- Win32Interop.cs
- EllipseGeometry.cs
- TransportSecurityProtocolFactory.cs
- NativeCompoundFileAPIs.cs
- SimpleHandlerFactory.cs
- DictionaryContent.cs
- CodeRemoveEventStatement.cs