語言

XamlResourceIdAttribute 類別

定義

將 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 資源相關的型別。

適用於