File: ManifestUtil\FileAssociation.cs
Web Access
Project: ..\..\..\src\Tasks\Microsoft.Build.Tasks.csproj (Microsoft.Build.Tasks.Core)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Xml.Serialization;
 
#nullable disable
 
namespace Microsoft.Build.Tasks.Deployment.ManifestUtilities
{
    /// <summary>
    /// Describes a fileAssociation for an application manifest
    /// </summary>
    [ComVisible(false)]
    public sealed class FileAssociation
    {
        private string _defaultIcon;
        private string _description;
        private string _extension;
        private string _progid;
 
        [XmlIgnore]
        public string DefaultIcon
        {
            get => _defaultIcon;
            set => _defaultIcon = value;
        }
 
        [XmlIgnore]
        public string Description
        {
            get => _description;
            set => _description = value;
        }
 
        [XmlIgnore]
        public string Extension
        {
            get => _extension;
            set => _extension = value;
        }
 
        [XmlIgnore]
        public string ProgId
        {
            get => _progid;
            set => _progid = value;
        }
 
        #region " XmlSerializer "
 
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        [XmlAttribute("DefaultIcon")]
        public string XmlDefaultIcon
        {
            get => _defaultIcon;
            set => _defaultIcon = value;
        }
 
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        [XmlAttribute("Description")]
        public string XmlDescription
        {
            get => _description;
            set => _description = value;
        }
 
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        [XmlAttribute("Extension")]
        public string XmlExtension
        {
            get => _extension;
            set => _extension = value;
        }
 
        [Browsable(false)]
        [EditorBrowsable(EditorBrowsableState.Never)]
        [XmlAttribute("Progid")]
        public string XmlProgId
        {
            get => _progid;
            set => _progid = value;
        }
 
        #endregion
    }
}