Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Handlers / TraceHandlerErrorFormatter.cs / 1305376 / TraceHandlerErrorFormatter.cs
namespace System.Web.Handlers { using System.IO; using System.Web.Util; using System.Web; using System.Collections; using System.Collections.Specialized; internal class TraceHandlerErrorFormatter : ErrorFormatter { bool _isRemote; internal TraceHandlerErrorFormatter(bool isRemote) { _isRemote = isRemote; } protected override string ErrorTitle { get { return SR.GetString(SR.Trace_Error_Title);} } protected override string Description { get { if(_isRemote) return SR.GetString(SR.Trace_Error_LocalOnly_Description); else return HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Description)); } } protected override string MiscSectionTitle { get { return null; } } protected override string MiscSectionContent { get { return null; } } protected override string ColoredSquareTitle { get { string detailsTitle = SR.GetString(SR.Generic_Err_Details_Title); AdaptiveMiscContent.Add(detailsTitle); return detailsTitle; } } protected override string ColoredSquareDescription { get { string description; if(_isRemote) description = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_LocalOnly_Details_Desc)); else description = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Details_Desc)); AdaptiveMiscContent.Add(description); return description; } } protected override string ColoredSquareContent { get { string content; if(_isRemote) content = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_LocalOnly_Details_Sample)); else content = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Details_Sample)); return WrapWithLeftToRightTextFormatIfNeeded(content); } } protected override bool ShowSourceFileInfo { get { return false;} } internal override bool CanBeShownToAllUsers { get { return true;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Web.Handlers { using System.IO; using System.Web.Util; using System.Web; using System.Collections; using System.Collections.Specialized; internal class TraceHandlerErrorFormatter : ErrorFormatter { bool _isRemote; internal TraceHandlerErrorFormatter(bool isRemote) { _isRemote = isRemote; } protected override string ErrorTitle { get { return SR.GetString(SR.Trace_Error_Title);} } protected override string Description { get { if(_isRemote) return SR.GetString(SR.Trace_Error_LocalOnly_Description); else return HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Description)); } } protected override string MiscSectionTitle { get { return null; } } protected override string MiscSectionContent { get { return null; } } protected override string ColoredSquareTitle { get { string detailsTitle = SR.GetString(SR.Generic_Err_Details_Title); AdaptiveMiscContent.Add(detailsTitle); return detailsTitle; } } protected override string ColoredSquareDescription { get { string description; if(_isRemote) description = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_LocalOnly_Details_Desc)); else description = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Details_Desc)); AdaptiveMiscContent.Add(description); return description; } } protected override string ColoredSquareContent { get { string content; if(_isRemote) content = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_LocalOnly_Details_Sample)); else content = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Details_Sample)); return WrapWithLeftToRightTextFormatIfNeeded(content); } } protected override bool ShowSourceFileInfo { get { return false;} } internal override bool CanBeShownToAllUsers { get { return true;} } } } // 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
- PassportIdentity.cs
- StrokeNodeOperations.cs
- BeginCreateSecurityTokenRequest.cs
- SafeFindHandle.cs
- Emitter.cs
- RowVisual.cs
- GradientSpreadMethodValidation.cs
- HMACSHA512.cs
- ValuePatternIdentifiers.cs
- XPathParser.cs
- XslException.cs
- EncoderBestFitFallback.cs
- UxThemeWrapper.cs
- PauseStoryboard.cs
- DependencySource.cs
- ChildChangedEventArgs.cs
- AsyncParams.cs
- FormViewPageEventArgs.cs
- ClickablePoint.cs
- RestHandlerFactory.cs
- ProfileSection.cs
- DataObjectFieldAttribute.cs
- CustomLineCap.cs
- ResourceDictionary.cs
- VariantWrapper.cs
- BasicCellRelation.cs
- DocumentViewerConstants.cs
- ProfileSettings.cs
- MDIControlStrip.cs
- DataKey.cs
- ConfigurationValidatorAttribute.cs
- TextTreeTextNode.cs
- ChangeNode.cs
- DynamicILGenerator.cs
- Menu.cs
- ObjectView.cs
- Cloud.cs
- Repeater.cs
- XhtmlTextWriter.cs
- BCLDebug.cs
- PaintEvent.cs
- ManipulationCompletedEventArgs.cs
- TextAutomationPeer.cs
- ManipulationCompletedEventArgs.cs
- GeometryValueSerializer.cs
- UserUseLicenseDictionaryLoader.cs
- AmbientLight.cs
- XmlSchemaSearchPattern.cs
- Stylesheet.cs
- PersonalizableAttribute.cs
- ExpressionBuilderContext.cs
- ModifiableIteratorCollection.cs
- RemoteWebConfigurationHost.cs
- DataGridViewCellStyleConverter.cs
- InvalidStoreProtectionKeyException.cs
- CreateUserErrorEventArgs.cs
- PropertyRef.cs
- ObjectParameter.cs
- DetailsViewDeleteEventArgs.cs
- ImageListUtils.cs
- DataGridViewRowCancelEventArgs.cs
- HostProtectionException.cs
- WsdlHelpGeneratorElement.cs
- URLBuilder.cs
- RoleManagerSection.cs
- CustomCategoryAttribute.cs
- SelectorItemAutomationPeer.cs
- UnionExpr.cs
- SizeAnimationClockResource.cs
- AsyncPostBackErrorEventArgs.cs
- XsdDataContractExporter.cs
- WindowsEditBoxRange.cs
- DictationGrammar.cs
- PersonalizationStateQuery.cs
- SecurityPermission.cs
- VarRefManager.cs
- LiteralControl.cs
- IQueryable.cs
- ConnectivityStatus.cs
- UInt64Converter.cs
- HttpClientCertificate.cs
- TaskExceptionHolder.cs
- GroupBox.cs
- DocobjHost.cs
- ThrowHelper.cs
- ItemCheckEvent.cs
- DesignTimeParseData.cs
- BindingEntityInfo.cs
- AndCondition.cs
- FilteredSchemaElementLookUpTable.cs
- DesignSurfaceManager.cs
- path.cs
- SrgsSubset.cs
- DictionaryItemsCollection.cs
- FrugalMap.cs
- LinkArea.cs
- TrackingDataItem.cs
- SqlDataReader.cs
- ControlPaint.cs
- WebConfigurationHost.cs