共用方式為


AssemblyReferences 類別

這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

內容項目,可維護設計工具用於解析型別資訊的參考集。

繼承階層架構

System.Object
  Microsoft.Windows.Design.ContextItem
    Microsoft.Windows.Design.AssemblyReferences

命名空間:  Microsoft.Windows.Design
組件:  Microsoft.Windows.Design.Extensibility (在 Microsoft.Windows.Design.Extensibility.dll 中)

語法

'宣告
Public Class AssemblyReferences _
    Inherits ContextItem
public class AssemblyReferences : ContextItem
public ref class AssemblyReferences : public ContextItem
type AssemblyReferences =  
    class
        inherit ContextItem
    end
public class AssemblyReferences extends ContextItem

AssemblyReferences 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 AssemblyReferences() 初始化 AssemblyReferences 類別的新執行個體。
公用方法 AssemblyReferences(IEnumerable<AssemblyName>) 使用指定的參考集,初始化 AssemblyReferences 類別的新執行個體。
公用方法 AssemblyReferences(AssemblyName, IEnumerable<AssemblyName>) 使用指定的本機組件名稱和參考集,初始化 AssemblyReferences 類別的新執行個體。

回頁首

屬性

  名稱 說明
公用屬性 ItemType 取得內容項目管理員中的索引鍵,這個索引鍵用來判斷此物件為何種型別的內容項目。 (覆寫 ContextItem.ItemType。)
公用屬性 LocalAssemblyName 取得本機組件名稱。
公用屬性 ReferencedAssemblies 取得列舉程式,這個列舉程式可用於列舉所參考的組件集。

回頁首

方法

  名稱 說明
公用方法 Equals 判斷指定的 Object 和目前的 Object 是否相等。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 GetTypes 傳回參考組件集中的所有型別,而這些型別會衍生自或實作指定的基底型別。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
受保護的方法 OnItemChanged 會在內容項目儲存至內容項目管理員之前,先對這個項目來呼叫。 (覆寫 ContextItem.OnItemChanged(EditingContext, ContextItem)。)
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

備註

您可以建立含有其他參考的新 AssemblyReferences 物件並將這個值設定至內容中,進而將更多參考加入至編輯內容。 真正使用的參考集會是新參考與現有參考的聯集。

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

Microsoft.Windows.Design 命名空間

其他資源

WPF 設計工具擴充性