Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / Xslt / XsltSettings.cs / 1305376 / XsltSettings.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
// http://webdata/xml/specs/XslCompiledTransform.xml
//-----------------------------------------------------------------------------
using System.CodeDom.Compiler;
namespace System.Xml.Xsl {
public sealed class XsltSettings {
private bool enableDocumentFunction;
private bool enableScript;
private bool checkOnly;
private bool includeDebugInformation;
private int warningLevel = -1; // -1 means not set
private bool treatWarningsAsErrors;
private TempFileCollection tempFiles;
public XsltSettings() { }
public XsltSettings(bool enableDocumentFunction, bool enableScript) {
this.enableDocumentFunction = enableDocumentFunction;
this.enableScript = enableScript;
}
public static XsltSettings Default {
get { return new XsltSettings(false, false); }
}
public static XsltSettings TrustedXslt {
get { return new XsltSettings(true, true); }
}
public bool EnableDocumentFunction {
get { return enableDocumentFunction; }
set { enableDocumentFunction = value; }
}
public bool EnableScript {
get { return enableScript; }
set { enableScript = value; }
}
internal bool CheckOnly {
get { return checkOnly; }
set { checkOnly = value; }
}
internal bool IncludeDebugInformation {
get { return includeDebugInformation; }
set { includeDebugInformation = value; }
}
internal int WarningLevel {
get { return warningLevel; }
set { warningLevel = value; }
}
internal bool TreatWarningsAsErrors {
get { return treatWarningsAsErrors; }
set { treatWarningsAsErrors = value; }
}
internal TempFileCollection TempFiles {
get { return tempFiles; }
set { tempFiles = value; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
// http://webdata/xml/specs/XslCompiledTransform.xml
//-----------------------------------------------------------------------------
using System.CodeDom.Compiler;
namespace System.Xml.Xsl {
public sealed class XsltSettings {
private bool enableDocumentFunction;
private bool enableScript;
private bool checkOnly;
private bool includeDebugInformation;
private int warningLevel = -1; // -1 means not set
private bool treatWarningsAsErrors;
private TempFileCollection tempFiles;
public XsltSettings() { }
public XsltSettings(bool enableDocumentFunction, bool enableScript) {
this.enableDocumentFunction = enableDocumentFunction;
this.enableScript = enableScript;
}
public static XsltSettings Default {
get { return new XsltSettings(false, false); }
}
public static XsltSettings TrustedXslt {
get { return new XsltSettings(true, true); }
}
public bool EnableDocumentFunction {
get { return enableDocumentFunction; }
set { enableDocumentFunction = value; }
}
public bool EnableScript {
get { return enableScript; }
set { enableScript = value; }
}
internal bool CheckOnly {
get { return checkOnly; }
set { checkOnly = value; }
}
internal bool IncludeDebugInformation {
get { return includeDebugInformation; }
set { includeDebugInformation = value; }
}
internal int WarningLevel {
get { return warningLevel; }
set { warningLevel = value; }
}
internal bool TreatWarningsAsErrors {
get { return treatWarningsAsErrors; }
set { treatWarningsAsErrors = value; }
}
internal TempFileCollection TempFiles {
get { return tempFiles; }
set { tempFiles = 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
- EventHandlerList.cs
- SplineKeyFrames.cs
- IdentityHolder.cs
- SerializationEventsCache.cs
- uribuilder.cs
- DurationConverter.cs
- PropertyDescriptorComparer.cs
- TableAutomationPeer.cs
- ConfigXmlCDataSection.cs
- Variant.cs
- FontStyleConverter.cs
- PropertyFilter.cs
- TextRunProperties.cs
- GridViewSelectEventArgs.cs
- XamlStream.cs
- ParentQuery.cs
- ChannelOptions.cs
- PointHitTestResult.cs
- ProtocolsConfiguration.cs
- PopOutPanel.cs
- GlyphsSerializer.cs
- CompModHelpers.cs
- PageBreakRecord.cs
- RequestDescription.cs
- ListViewGroupConverter.cs
- TreeBuilderBamlTranslator.cs
- EventSchemaTraceListener.cs
- StaticTextPointer.cs
- CounterSetInstanceCounterDataSet.cs
- HtmlImage.cs
- MetadataItemCollectionFactory.cs
- CSharpCodeProvider.cs
- DataGridRow.cs
- OneOfConst.cs
- OfTypeExpression.cs
- URLString.cs
- CompositeKey.cs
- JumpList.cs
- _OverlappedAsyncResult.cs
- ParenthesizePropertyNameAttribute.cs
- DocumentViewerBase.cs
- UriParserTemplates.cs
- UnmanagedMarshal.cs
- FontWeights.cs
- OdbcDataAdapter.cs
- UrlMapping.cs
- LinqDataSourceStatusEventArgs.cs
- Columns.cs
- TargetInvocationException.cs
- FileIOPermission.cs
- Rect.cs
- GenerateHelper.cs
- MSG.cs
- ScrollContentPresenter.cs
- ConfigurationPropertyAttribute.cs
- PackageDigitalSignatureManager.cs
- StringValueSerializer.cs
- RectValueSerializer.cs
- ToolStripEditorManager.cs
- PassportPrincipal.cs
- TdsEnums.cs
- EmbeddedMailObjectsCollection.cs
- DesignerSelectionListAdapter.cs
- ToolStripRendererSwitcher.cs
- WindowsPen.cs
- ModelTreeManager.cs
- SendSecurityHeaderElement.cs
- EventToken.cs
- MarkupWriter.cs
- _RequestCacheProtocol.cs
- DbConnectionStringCommon.cs
- EnumerableRowCollection.cs
- Brushes.cs
- SessionStateContainer.cs
- Vector3DConverter.cs
- contentDescriptor.cs
- BindStream.cs
- OdbcStatementHandle.cs
- LinqDataSourceStatusEventArgs.cs
- FullTextLine.cs
- BmpBitmapEncoder.cs
- _HeaderInfoTable.cs
- PropertyGrid.cs
- LinqDataSourceSelectEventArgs.cs
- PartBasedPackageProperties.cs
- SoapFormatExtensions.cs
- DataGridViewComponentPropertyGridSite.cs
- WebPartDescription.cs
- SystemFonts.cs
- DataGridViewButtonCell.cs
- NaturalLanguageHyphenator.cs
- XPathNavigatorKeyComparer.cs
- Message.cs
- RsaKeyIdentifierClause.cs
- ListViewGroupConverter.cs
- CryptoHelper.cs
- DataGridColumnReorderingEventArgs.cs
- ContentDisposition.cs
- AsymmetricAlgorithm.cs
- MbpInfo.cs