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
- SmiRequestExecutor.cs
- SimpleWebHandlerParser.cs
- RegularExpressionValidator.cs
- System.Data_BID.cs
- UserControlBuildProvider.cs
- ResourceReferenceExpressionConverter.cs
- WebBrowserHelper.cs
- XmlNodeWriter.cs
- String.cs
- controlskin.cs
- SqlIdentifier.cs
- CrossAppDomainChannel.cs
- DBSqlParserColumn.cs
- InternalConfigConfigurationFactory.cs
- peernodestatemanager.cs
- DesignerCatalogPartChrome.cs
- ContentTextAutomationPeer.cs
- RuntimeVariablesExpression.cs
- UnsafeNetInfoNativeMethods.cs
- CodeStatementCollection.cs
- AssociationType.cs
- SequentialOutput.cs
- ObjectContextServiceProvider.cs
- HttpException.cs
- arc.cs
- BamlLocalizableResourceKey.cs
- FindProgressChangedEventArgs.cs
- IOException.cs
- CustomErrorsSectionWrapper.cs
- SecuritySessionFilter.cs
- TextEditorCharacters.cs
- EventData.cs
- SecurityKeyIdentifierClause.cs
- Schema.cs
- TextWriter.cs
- DrawingContextDrawingContextWalker.cs
- Model3DCollection.cs
- _ListenerRequestStream.cs
- ContentDisposition.cs
- WebBrowserSiteBase.cs
- EntityStoreSchemaFilterEntry.cs
- Statements.cs
- RowToParametersTransformer.cs
- CryptoProvider.cs
- HMACSHA1.cs
- cache.cs
- StateManagedCollection.cs
- TransactionFlowProperty.cs
- PolicyStatement.cs
- MemberPath.cs
- FixedMaxHeap.cs
- MultipartContentParser.cs
- PriorityBinding.cs
- MessageAction.cs
- DesignerVerbCollection.cs
- EventSchemaTraceListener.cs
- XomlDesignerLoader.cs
- ConsumerConnectionPointCollection.cs
- DbConnectionFactory.cs
- JsonWriter.cs
- OutputScopeManager.cs
- NativeRecognizer.cs
- Int32CAMarshaler.cs
- RowToParametersTransformer.cs
- PlatformCulture.cs
- FixedElement.cs
- KoreanLunisolarCalendar.cs
- ToolStripContentPanel.cs
- DelegateSerializationHolder.cs
- LiteralText.cs
- XmlExpressionDumper.cs
- input.cs
- DecodeHelper.cs
- TreeIterators.cs
- MDIClient.cs
- OptimisticConcurrencyException.cs
- SharedStatics.cs
- ColumnMapVisitor.cs
- TemplateBamlRecordReader.cs
- IsolatedStorageFilePermission.cs
- XhtmlBasicCalendarAdapter.cs
- JumpList.cs
- DataGridViewAdvancedBorderStyle.cs
- HandlerBase.cs
- TokenBasedSet.cs
- FieldNameLookup.cs
- TypeDescriptorContext.cs
- OleDbSchemaGuid.cs
- DateTimeFormat.cs
- ToolStripGripRenderEventArgs.cs
- ConstraintStruct.cs
- SortedSetDebugView.cs
- PenThreadWorker.cs
- XsdDataContractImporter.cs
- MasterPage.cs
- _IPv4Address.cs
- AssociationSetEnd.cs
- XamlSerializerUtil.cs
- SrgsToken.cs
- RepeaterDataBoundAdapter.cs