다음을 통해 공유


RegistrationAttribute.RegistrationContext.ComponentPath Property

Definition

Gets the path to the component that is being registered.

public:
 abstract property System::String ^ ComponentPath { System::String ^ get(); };
public:
 abstract property Platform::String ^ ComponentPath { Platform::String ^ get(); };
public abstract string ComponentPath { get; }
member this.ComponentPath : string
Public MustOverride ReadOnly Property ComponentPath As String

Property Value

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.

Applies to