Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XamlInterfaces.cs
- ThreadPool.cs
- SafeRegistryHandle.cs
- DataTableMapping.cs
- AxDesigner.cs
- XmlSchemaRedefine.cs
- WebPartEventArgs.cs
- SpellCheck.cs
- CfgParser.cs
- CodeNamespaceImportCollection.cs
- ButtonBaseDesigner.cs
- RotateTransform.cs
- SqlServices.cs
- Helper.cs
- WebPartZoneBase.cs
- DelegatedStream.cs
- DependencyObjectProvider.cs
- WaitHandle.cs
- SafeMILHandle.cs
- DataListItem.cs
- UInt32Converter.cs
- OciLobLocator.cs
- ButtonChrome.cs
- TextServicesManager.cs
- ColorKeyFrameCollection.cs
- SetStoryboardSpeedRatio.cs
- PtsHelper.cs
- RotateTransform3D.cs
- TextEditorTyping.cs
- QilParameter.cs
- ResourceReferenceExpressionConverter.cs
- PrivateFontCollection.cs
- BasePattern.cs
- ExpressionNode.cs
- IChannel.cs
- RuntimeArgumentHandle.cs
- WebPartMenuStyle.cs
- TypedLocationWrapper.cs
- AccessText.cs
- _RequestCacheProtocol.cs
- hwndwrapper.cs
- basemetadatamappingvisitor.cs
- SortQuery.cs
- SimpleExpression.cs
- Keywords.cs
- SamlDoNotCacheCondition.cs
- Atom10FormatterFactory.cs
- DrawingAttributes.cs
- Composition.cs
- PermissionSetEnumerator.cs
- HtmlTableCellCollection.cs
- BitmapEffectGeneralTransform.cs
- ExitEventArgs.cs
- SimplePropertyEntry.cs
- ConfigXmlText.cs
- DependencyObjectPropertyDescriptor.cs
- TextCompositionManager.cs
- ColumnPropertiesGroup.cs
- CompositeActivityTypeDescriptor.cs
- OleDbPermission.cs
- ObjectIDGenerator.cs
- Rect3DValueSerializer.cs
- TreeNodeBindingCollection.cs
- LocatorPart.cs
- Util.cs
- CharacterBufferReference.cs
- XmlSchemaAll.cs
- CommandEventArgs.cs
- Vector3DConverter.cs
- UInt32.cs
- OneOfConst.cs
- EmptyImpersonationContext.cs
- Token.cs
- ConsoleKeyInfo.cs
- HandlerBase.cs
- Margins.cs
- XmlCountingReader.cs
- DecoderBestFitFallback.cs
- HtmlMeta.cs
- ContentElementAutomationPeer.cs
- TextServicesDisplayAttribute.cs
- SafeCryptContextHandle.cs
- CodeTypeMemberCollection.cs
- QueryConverter.cs
- cache.cs
- ProjectionCamera.cs
- SizeFConverter.cs
- MailAddress.cs
- ListComponentEditor.cs
- WsatServiceAddress.cs
- FileReservationCollection.cs
- Rfc2898DeriveBytes.cs
- TreeNodeStyleCollection.cs
- Rule.cs
- Material.cs
- CatalogZoneBase.cs
- Metadata.cs
- WindowsPrincipal.cs
- ExpressionEditorSheet.cs
- ToolBar.cs