次の方法で共有


IPublishFile2 Interface

Defines the ClickOnce properties of one file in a deployment on computers that have Visual Studio 2008 Service Pack 1 or later versions.

Namespace:  Microsoft.VisualStudio.ManagedInterfaces.Publish
Assembly:  Microsoft.VisualStudio.ManagedInterfaces.9.0 (in Microsoft.VisualStudio.ManagedInterfaces.9.0.dll)

Syntax

'宣言
<GuidAttribute("EEDA4124-EC69-4309-8D18-B1044D5BE868")> _
Public Interface IPublishFile2 _
    Inherits IPublishFile
[GuidAttribute("EEDA4124-EC69-4309-8D18-B1044D5BE868")]
public interface IPublishFile2 : IPublishFile

The IPublishFile2 type exposes the following members.

Properties

  Name Description
Public property Group Gets and sets the published group. (Inherited from IPublishFile.)
Public property Group Gets or sets the download group for this file.
Public property IncludeHash Gets or sets a value that indicates whether to include the hash of the file in the output manifest.
Public property IsAssembly Gets whether or not the interface's file is an assembly. (Inherited from IPublishFile.)
Public property IsAssembly Gets a value that indicates whether the file is an assembly.
Public property IsDataFile Gets whether or not the file is a data file. (Inherited from IPublishFile.)
Public property IsDataFile Gets a value that indicates whether the file is a data file.
Public property IsOrphaned Gets whether or not the file cannot be mapped to an item in the project. (Inherited from IPublishFile.)
Public property IsOrphaned Gets a value that indicates whether the file cannot be mapped to a file in the project.
Public property IsPrerequisite Gets whether or not the file is a prerequisite for deployment. (Inherited from IPublishFile.)
Public property IsPrerequisite Gets a value that indicates whether the file is a prerequisite for the deployment.
Public property IsPublished Gets whether or not the file is to be deployed. (Inherited from IPublishFile.)
Public property IsPublished Gets a value that indicates whether the file will be deployed.
Public property IsReadOnly Gets whether or not the file is read-only. (Inherited from IPublishFile.)
Public property IsReadOnly Gets a value that indicates whether the file is required.
Public property Name Gets the name of the file. (Inherited from IPublishFile.)
Public property Name Gets the local name of the file.
Public property PublishStatus Gets or sets the current status of the file. (Inherited from IPublishFile.)
Public property PublishStatus Gets or sets a value that indicates how a file should be treated by the build system.
Public property TargetPath Gets or sets the target path of this file. (Inherited from IPublishFile.)
Public property TargetPath Gets or sets the target name of the file.

Top

Methods

  Name Description
Public method Reset() Returns this file to the default state. (Inherited from IPublishFile.)
Public method Reset() Sets file properties to their default values.

Top

Remarks

This interface is only available to products that run in Visual Studio 2008 Service Pack 1 or later versions.

See Also

Reference

Microsoft.VisualStudio.ManagedInterfaces.Publish Namespace

IPublishProperties3