Partager via


RegistrationAttribute.RegistrationContext.ComponentPath Property

Gets the path to the component that is being registered.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property ComponentPath As String
public abstract string ComponentPath { get; }
public:
virtual property String^ ComponentPath {
    String^ get () abstract;
}
abstract ComponentPath : string with get
abstract function get ComponentPath () : String

Property Value

Type: String
The path to the component being registered, including the file name.

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

Microsoft.VisualStudio.Shell Namespace

RegistrationAttribute.RegistrationContext