AssemblyAssociatedContentFileAttribute.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Resources / AssemblyAssociatedContentFileAttribute.cs / 1305600 / AssemblyAssociatedContentFileAttribute.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// Description: 
//      Attribute definition for loose content files 
//
// 
// History:
//  06/14/2005: [....]  Created
//
//--------------------------------------------------------------------------- 

using System; 
 
namespace System.Windows.Resources
{ 
    /// 
    /// This attribute is used by the compiler to associate loose content with the application
    /// at compile time.
    ///  
    [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
    public sealed class AssemblyAssociatedContentFileAttribute : Attribute 
    { 
        private string _path;
        ///  
        /// The default constructor recieves a relative path to the content.
        /// 
        /// 
        public AssemblyAssociatedContentFileAttribute(string relativeContentFilePath) 
        {
            _path = relativeContentFilePath; 
        } 

        ///  
        /// The path to the associated content.
        /// 
        public string RelativeContentFilePath
        { 
            get
            { 
                return _path; 
            }
        } 

    }

} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// Description: 
//      Attribute definition for loose content files 
//
// 
// History:
//  06/14/2005: [....]  Created
//
//--------------------------------------------------------------------------- 

using System; 
 
namespace System.Windows.Resources
{ 
    /// 
    /// This attribute is used by the compiler to associate loose content with the application
    /// at compile time.
    ///  
    [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
    public sealed class AssemblyAssociatedContentFileAttribute : Attribute 
    { 
        private string _path;
        ///  
        /// The default constructor recieves a relative path to the content.
        /// 
        /// 
        public AssemblyAssociatedContentFileAttribute(string relativeContentFilePath) 
        {
            _path = relativeContentFilePath; 
        } 

        ///  
        /// The path to the associated content.
        /// 
        public string RelativeContentFilePath
        { 
            get
            { 
                return _path; 
            }
        } 

    }

} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK