//--------------------------------------------------------------------------------------------------
// <copyright file="WixLinkedFileNodeProperties.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are covered by the
// Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
// which can be found in the file CPL.TXT at the root of this distribution.
// By using this software in any fashion, you are agreeing to be bound by
// the terms of this license.
//
// You must not remove this notice, or any other, from this software.
// </copyright>
//
// <summary>
// Contains the WixLinkedFileNodeProperties class.
// </summary>
//--------------------------------------------------------------------------------------------------
namespace Microsoft.Tools.WindowsInstallerXml.VisualStudio{
using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio.Package;
/// <summary>
/// Represents file node properties.
/// </summary>
/// <remarks>This class must be public and marked as ComVisible in order for the DispatchWrapper to work correctly.</remarks>
[CLSCompliant(false)]
[ComVisible(true)]
[Guid("A8C51FF6-5E9D-40A1-A57D-667756391FFF")]
[SuppressMessage("Microsoft.Interoperability", "CA1409:ComVisibleTypesShouldBeCreatable")]
public class WixLinkedFileNodeProperties : LinkedFileNodeProperties
{
// =========================================================================================
// Constructors
// =========================================================================================
/// <summary>
/// Initializes a new instance of the <see cref="WixLinkedFileNodeProperties"/> class.
/// </summary>
/// <param name="node">The node that contains the properties to expose via the Property Browser.</param>
public WixLinkedFileNodeProperties(WixFileNode node)
: base(node)
{
}
// =========================================================================================
// Methods
// =========================================================================================
/// <summary>
/// Creates a custom property descriptor for the node properties, which affects the behavior
/// of the property grid.
/// </summary>
/// <param name="propertyDescriptor">The <see cref="PropertyDescriptor"/> to wrap.</param>
/// <returns>A custom <see cref="PropertyDescriptor"/> object.</returns>
[SuppressMessage("Microsoft.Naming", "CA1725:ParameterNamesShouldMatchBaseDeclaration", MessageId = "0#", Justification = "In the 2005 SDK, it's called p and in the 2008 SDK it's propertyDescriptor")]
public override DesignPropertyDescriptor CreateDesignPropertyDescriptor(PropertyDescriptor propertyDescriptor)
{
return new WixDesignPropertyDescriptor(propertyDescriptor);
}
}
}
|