Share via


RegistrationAttribute.RegistrationContext.ComponentPath Property

Gets the path to the component that is being registered.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property ComponentPath As String
'Usage
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.

.NET Framework Security

See Also

Reference

RegistrationAttribute.RegistrationContext Class

RegistrationAttribute.RegistrationContext Members

Microsoft.VisualStudio.Shell Namespace

RegistrationAttribute.RegistrationContext