VCFile.DeploymentContent Özellik

Tanım

Seçili dosyanın dağıtım durumunu gösteren bir değer alır veya ayarlar. DeploymentContent , bir dağıtım projesi çözümün parçasıysa kullanılır.

public:
 property bool DeploymentContent { bool get(); void set(bool value); };
public:
 property bool DeploymentContent { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(406)]
public bool DeploymentContent { [System.Runtime.InteropServices.DispId(406)] get; [System.Runtime.InteropServices.DispId(406)] set; }
[<System.Runtime.InteropServices.DispId(406)>]
[<get: System.Runtime.InteropServices.DispId(406)>]
[<set: System.Runtime.InteropServices.DispId(406)>]
member this.DeploymentContent : bool with get, set
Public Property DeploymentContent As Boolean

Özellik Değeri

Boolean

true çözüm dağıtıldığında dosya içerik olarak dağıtılırsa; Aksi takdirde, false .

Öznitelikler

Örnekler

Aşağıdaki örnek, DeploymentContent Özelliği tümleşik geliştirme ortamında (IDE) kullanır:

' 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  

Açıklamalar

Bu örneği derlemek ve çalıştırmak hakkında bilgi için bkz. nasıl yapılır: proje modeli genişletilebilirliği Için örnek kod derleme .

Şunlara uygulanır