Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Base / MS / Internal / AvTraceFormat.cs / 1 / AvTraceFormat.cs
/****************************************************************************\
*
* File: AvTraceFormat.cs
*
* Copyright (C) by Microsoft Corporation. All rights reserved.
*
\***************************************************************************/
namespace MS.Internal
{
// This class represents the details of a single trace (the ID, a formatted message string, and parameter labels).
// This is used by the AvTrace class and callers.
internal class AvTraceFormat : AvTraceDetails
{
public AvTraceFormat( AvTraceDetails details, object[] args ) : base(details.Id, details.Labels)
{
_message = string.Format(System.Globalization.CultureInfo.InvariantCulture, details.Labels[0], args);
}
// main message (formatted)
public override string Message
{
get
{
return _message;
}
}
string _message;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
/****************************************************************************\
*
* File: AvTraceFormat.cs
*
* Copyright (C) by Microsoft Corporation. All rights reserved.
*
\***************************************************************************/
namespace MS.Internal
{
// This class represents the details of a single trace (the ID, a formatted message string, and parameter labels).
// This is used by the AvTrace class and callers.
internal class AvTraceFormat : AvTraceDetails
{
public AvTraceFormat( AvTraceDetails details, object[] args ) : base(details.Id, details.Labels)
{
_message = string.Format(System.Globalization.CultureInfo.InvariantCulture, details.Labels[0], args);
}
// main message (formatted)
public override string Message
{
get
{
return _message;
}
}
string _message;
}
}
// 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
- AtomMaterializerLog.cs
- MetadataExporter.cs
- RequestCacheEntry.cs
- HostingEnvironmentSection.cs
- CriticalFinalizerObject.cs
- WebControlToolBoxItem.cs
- GridProviderWrapper.cs
- XmlSchemaSimpleContent.cs
- sqlstateclientmanager.cs
- ButtonBase.cs
- XmlSchemaChoice.cs
- ThreadAttributes.cs
- ConfigurationManagerHelperFactory.cs
- HttpResponseHeader.cs
- DocumentViewerBaseAutomationPeer.cs
- TextAutomationPeer.cs
- Rights.cs
- XmlDocument.cs
- TrackingMemoryStream.cs
- SchemaNotation.cs
- IdentityReference.cs
- FormViewDeletedEventArgs.cs
- GlyphManager.cs
- ProcessInputEventArgs.cs
- EventLogEntry.cs
- FixedSchema.cs
- XPathAncestorIterator.cs
- NullExtension.cs
- SecurityTokenContainer.cs
- SelectedGridItemChangedEvent.cs
- Type.cs
- CompositeFontParser.cs
- OleCmdHelper.cs
- CompilerCollection.cs
- ForwardPositionQuery.cs
- BaseAsyncResult.cs
- SSmlParser.cs
- FixedSOMFixedBlock.cs
- ConnectionConsumerAttribute.cs
- XmlAtomicValue.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- PlatformCulture.cs
- FrameworkReadOnlyPropertyMetadata.cs
- DBSqlParserColumn.cs
- ItemsControl.cs
- IntegrationExceptionEventArgs.cs
- IssuedTokenParametersElement.cs
- HMACSHA1.cs
- Serializer.cs
- TypeAccessException.cs
- XmlReader.cs
- BuildProvider.cs
- ServiceNameElement.cs
- UndirectedGraph.cs
- DynamicILGenerator.cs
- Metafile.cs
- FormClosingEvent.cs
- StorageBasedPackageProperties.cs
- ProgressBar.cs
- SQLRoleProvider.cs
- CheckedPointers.cs
- SelectorItemAutomationPeer.cs
- XmlBoundElement.cs
- StickyNote.cs
- RelationshipConverter.cs
- StandardMenuStripVerb.cs
- GraphicsContainer.cs
- CqlBlock.cs
- FormClosedEvent.cs
- TreeViewHitTestInfo.cs
- BCLDebug.cs
- LabelAutomationPeer.cs
- Screen.cs
- HealthMonitoringSection.cs
- TypedElement.cs
- OperatorExpressions.cs
- OracleInfoMessageEventArgs.cs
- EntitySqlQueryCacheEntry.cs
- XMLSchema.cs
- OutputCacheModule.cs
- QuaternionAnimationUsingKeyFrames.cs
- SqlDuplicator.cs
- SafeEventLogWriteHandle.cs
- PhysicalAddress.cs
- ScriptModule.cs
- DataGridViewRowConverter.cs
- SQLByte.cs
- ProxyAttribute.cs
- HexParser.cs
- DesignerUtils.cs
- XmlElementCollection.cs
- WmlValidatorAdapter.cs
- RemotingAttributes.cs
- ScriptReferenceBase.cs
- ExpressionVisitor.cs
- ToolBarOverflowPanel.cs
- TimeoutValidationAttribute.cs
- AttributedMetaModel.cs
- DataBindEngine.cs
- CodeAttributeDeclaration.cs