Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DeploymentContent Property
Collapse the table of content
Expand the table of content

DeploymentContent Property

Visual Studio .NET 2003

Indicates the deployment status of the selected file. Used when a deployment project is part of the solution.

[Visual Basic .NET]
Public Property DeploymentContent() As Boolean
[Visual Basic 6]
Property Get DeploymentContent() As Boolean
Property Let DeploymentContent( _
   ByVal NewValue As Boolean _
) 
[C++]
HRESULT __stdcall get_DeploymentContent(
   /* [out, retval] */ VARIANT_BOOL* retVal
);
HRESULT __stdcall put_DeploymentContent(
   /* [in] */ VARIANT_BOOL NewValue
);
[C#]
public bool DeploymentContent {get; set;}
[JScript .NET]
public function get DeploymentContent() : Boolean
public function set DeploymentContent(
   NewValue : Boolean
)

Remarks

If a project is in a solution with a deployment project, this DeploymentContent property is True, and the solution is deployed, the file will be deployed as content.

Example

The following sample code uses the DeploymentContent property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim file As VCFile
        Dim col As IVCCollection
        prj = DTE.Solution.Projects.Item(1).Object
        col = prj.Files
        file = col.Item("ReadMe.txt")
        MsgBox(file.DeploymentContent)
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCFile Object

Show:
© 2015 Microsoft