RegistrationAttribute.RegistrationContext.CodeBase Property

Gets the path and filename of the object being registered.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.Immutable.10.0 (in Microsoft.VisualStudio.Shell.Immutable.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)

Syntax

声明
Public MustOverride ReadOnly Property CodeBase As String
    Get
用法
Dim instance As RegistrationAttribute..::..RegistrationContext
Dim value As String

value = instance.CodeBase
public abstract string CodeBase { get; }
public:
virtual property String^ CodeBase {
    String^ get () abstract;
}
abstract CodeBase : string
abstract function get CodeBase () : String

Property Value

Type: System.String
The path and filename of the object being registered.

Remarks

The CodeBase registry key specifies a file path from which Visual Studio loads the VSPackage.

Note   If the VSPackage DLL is located in either the ..\PublicAssemblies or ..\PrivateAssemblies folders, the CodeBase registry entry is not required, and the CodeBase property can be empty.

.NET Framework Security

See Also

Reference

RegistrationAttribute.RegistrationContext Class

RegistrationAttribute.RegistrationContext Members

Microsoft.VisualStudio.Shell Namespace

RegistrationAttribute.RegistrationContext