XamlResourceIdAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 XAML 資源 ID 映射到其路徑及相關類型。
public ref class XamlResourceIdAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)]
public sealed class XamlResourceIdAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)>]
type XamlResourceIdAttribute = class
inherit Attribute
Public NotInheritable Class XamlResourceIdAttribute
Inherits Attribute
- 繼承
-
XamlResourceIdAttribute
- 屬性
備註
供 XAML 基礎設施內部使用。
建構函式
| 名稱 | Description |
|---|---|
| XamlResourceIdAttribute(String, String, Type) |
會產生一個新的 XamlResourceIdAttribute。 |
屬性
| 名稱 | Description |
|---|---|
| Path |
取得或設定專案路徑到 XAML 檔案。 |
| ResourceId |
取得或設定內嵌的資源識別碼。 |
| Type |
取得或設定與 XAML 資源相關的型別。 |