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
- GenericEnumerator.cs
- ReturnValue.cs
- DbParameterCollectionHelper.cs
- KeyTimeConverter.cs
- Assembly.cs
- EnterpriseServicesHelper.cs
- ObjectKeyFrameCollection.cs
- DbParameterCollection.cs
- AuthenticationServiceManager.cs
- DbModificationClause.cs
- UseLicense.cs
- XmlWrappingWriter.cs
- SymbolType.cs
- ExtendedPropertyDescriptor.cs
- DesignerSerializationOptionsAttribute.cs
- Catch.cs
- HandleCollector.cs
- DataGridCell.cs
- AdapterUtil.cs
- SmtpDigestAuthenticationModule.cs
- DataBinding.cs
- SqlDataSourceFilteringEventArgs.cs
- RandomNumberGenerator.cs
- Transform.cs
- QueryOutputWriter.cs
- DataGridViewCellConverter.cs
- ManageRequest.cs
- StyleHelper.cs
- ObjectConverter.cs
- AssemblyFilter.cs
- IntSecurity.cs
- BindingOperations.cs
- Attachment.cs
- IPPacketInformation.cs
- AuthenticationService.cs
- ScrollViewer.cs
- CellRelation.cs
- WebBrowserNavigatingEventHandler.cs
- ImageField.cs
- MemberInfoSerializationHolder.cs
- DecimalSumAggregationOperator.cs
- SspiNegotiationTokenProvider.cs
- ElementProxy.cs
- XmlCharType.cs
- GPPOINT.cs
- PKCS1MaskGenerationMethod.cs
- TextSpan.cs
- RowParagraph.cs
- MemoryRecordBuffer.cs
- SharedPersonalizationStateInfo.cs
- Knowncolors.cs
- ListBoxDesigner.cs
- OracleTransaction.cs
- SqlRewriteScalarSubqueries.cs
- BigInt.cs
- cache.cs
- EraserBehavior.cs
- _NestedMultipleAsyncResult.cs
- DigestTraceRecordHelper.cs
- _TimerThread.cs
- AttributeUsageAttribute.cs
- XPathNodeInfoAtom.cs
- EncoderReplacementFallback.cs
- SqlGenericUtil.cs
- WindowPattern.cs
- ToolStripRenderer.cs
- UnrecognizedPolicyAssertionElement.cs
- KeysConverter.cs
- WindowsFormsHostAutomationPeer.cs
- SmtpCommands.cs
- Queue.cs
- DataControlImageButton.cs
- Brush.cs
- GenericPrincipal.cs
- EntityObject.cs
- ListItemCollection.cs
- ProviderSettingsCollection.cs
- ResourceExpression.cs
- Parameter.cs
- TextRangeEditTables.cs
- SortQuery.cs
- ImageMap.cs
- DesignerSerializationOptionsAttribute.cs
- TypeConverterHelper.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- PropertyMetadata.cs
- PostBackOptions.cs
- InfoCardTraceRecord.cs
- UserNameSecurityToken.cs
- DataServiceQueryProvider.cs
- CheckBox.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DataGridHeaderBorder.cs
- Decoder.cs
- WebPartsPersonalization.cs
- SqlBooleanMismatchVisitor.cs
- DbDataRecord.cs
- Collection.cs
- QilUnary.cs
- DockingAttribute.cs