File: Core\CSharp\System\Windows\Resources\AssemblyAssociatedContentFileAttribute.cs
Project: wpf\src\PresentationCore.csproj (PresentationCore)
//---------------------------------------------------------------------------
//
// <copyright file="AssemblyAssociatedContentFileAttribute.cs" company="Microsoft">
//    Copyright (C) Microsoft Corporation.  All rights reserved.
// </copyright>
// 
// Description:
//      Attribute definition for loose content files
//
//              
// History:
//  06/14/2005: Microsoft  Created
//
//---------------------------------------------------------------------------
 
using System;
 
namespace System.Windows.Resources
{
    /// <summary>
    /// This attribute is used by the compiler to associate loose content with the application
    /// at compile time.
    /// </summary>
    [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
    public sealed class AssemblyAssociatedContentFileAttribute : Attribute
    {
        private string _path;
        /// <summary>
        /// The default constructor recieves a relative path to the content.
        /// </summary>
        /// <param name="relativeContentFilePath"></param>
        public AssemblyAssociatedContentFileAttribute(string relativeContentFilePath)
        {
            _path = relativeContentFilePath;
        }
 
        /// <summary>
        /// The path to the associated content.
        /// </summary>
        public string RelativeContentFilePath
        {
            get 
            {
                return _path;
            }
        }
 
    }
    
}