次の方法で共有


RegistrationAttribute.RegistrationContext.ComponentPath Property

Gets the path to the component that is being registered.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
Public MustOverride ReadOnly Property ComponentPath As String
'使用
Dim instance As RegistrationAttribute..::.RegistrationContext
Dim value As String

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

Property Value

Type: System.String

The path to the component being registered.

Remarks

Always use the ComponentPath property to locate the component being registered, rather than the CodeBase property. ComponentPath does not always refer to a physical path on disk. It can be a token that identifies the path at install time. The component is the same type as the object on which the registration attribute was found.

Permissions

See Also

Reference

RegistrationAttribute.RegistrationContext Class

RegistrationAttribute.RegistrationContext Members

Microsoft.VisualStudio.Shell Namespace

RegistrationAttribute.RegistrationContext