获取注册的对象的路径和文件名。
命名空间: Microsoft.VisualStudio.Shell
程序集: Microsoft.VisualStudio.Shell.Immutable.10.0(在 Microsoft.VisualStudio.Shell.Immutable.10.0.dll 中)
语法
声明
Public MustOverride ReadOnly Property CodeBase As String
public abstract string CodeBase { get; }
属性值
类型:System.String
注册的对象的路径和文件名。
备注
CodeBase 注册表项指定 Visual Studio 加载 VSPackage 的文件路径。
请注意,如果 VSPackage DLL 位于的数组中。\PublicAssemblies 或。, CodeBase 注册表项不需要 \PrivateAssemblies 文件夹,并且, CodeBase 属性可以为空。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
RegistrationAttribute.RegistrationContext 类