File: Base\MS\Internal\AvTraceDetails.cs
Project: wpf\src\WindowsBase.csproj (WindowsBase)
/***************************************************************************\
*
* File: AvTraceDetails.cs
*
* Copyright (C) by Microsoft Corporation.  All rights reserved.
*
\***************************************************************************/
 
 
namespace MS.Internal
{
 
    // This class represents the details of a single trace (the ID and message strings).
    // This is used by the AvTrace class and callers.
    
    internal class AvTraceDetails
    {
        public AvTraceDetails( int id, string[] labels )
        {
            _id = id;
            _labels = labels;
        }
 
        // Each trace has a differnt ID
        public int Id
        {
            get
            {
                return _id;
            }
        }
 
        // base trace message/format-string
        public virtual string Message
        {
            get
            {
                return _labels[0];
            }
        }
 
        // parameter labels (with base trace message/format-string at index 0)
        public string[] Labels
        {
            get
            {
                return _labels;
            }
        }
 
        int _id;
        string[] _labels;
    }
 
}