共用方式為


ProvideBindingPathAttribute.SubPath 屬性

若要在 $PackageFolder$ 之後設定選擇性子路徑。 只有能夠探查的組件位於不同的目錄,比 pkgdef 檔案,這應該會使用。

命名空間:  Microsoft.VisualStudio.Modeling.Shell
組件:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

語法

'宣告
Public Property SubPath As String
public string SubPath { get; set; }

屬性值

型別:System.String

備註

例如:

[ProvideBindingPath(SubPath="MySubDirectory")] 
public class MyVsPackage : Microsoft.VisualStudio.Shell.Package 
{ ... }

.NET Framework 安全性

請參閱

參考

ProvideBindingPathAttribute 類別

Microsoft.VisualStudio.Modeling.Shell 命名空間