_Assembly.CodeBase 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為 COM 物件提供與版本無關的 CodeBase 屬性之存取權。
public:
property System::String ^ CodeBase { System::String ^ get(); };
public string CodeBase { get; }
member this.CodeBase : string
Public ReadOnly Property CodeBase As String
屬性值
原先指定的組件位置。
備註
這個方法是用來從非受控碼存取 managed 類別,不應該從 managed 程式碼呼叫。
Assembly.CodeBase屬性會取得元件的位置,例如原本指定的元件(例如,在物件中) AssemblyName 。