RegistrationAttribute.RegistrationContext.CodeBase 属性

获取注册的对象的路径和文件名。

命名空间:  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 类

Microsoft.VisualStudio.Shell 命名空间

RegistrationAttribute.RegistrationContext