SiteMapNode.Attributes プロパティ

定義

SiteMapNode クラスに対して定義されている厳密に型指定されたプロパティを超える追加の属性のコレクションを取得または設定します。

protected:
 property System::Collections::Specialized::NameValueCollection ^ Attributes { System::Collections::Specialized::NameValueCollection ^ get(); void set(System::Collections::Specialized::NameValueCollection ^ value); };
protected System.Collections.Specialized.NameValueCollection Attributes { get; set; }
member this.Attributes : System.Collections.Specialized.NameValueCollection with get, set
Protected Property Attributes As NameValueCollection

プロパティ値

TitleDescriptionUrlRoles以外のSiteMapNodeの追加属性のNameValueCollection。それ以外の場合は、属性が存在しない場合はnull

例外

ノードは読み取り専用です。

注釈

Attributes コレクションは、通常、サイト マップ ノードに追加の属性を適用する必要があるが、これを行うためにカスタム クラスを派生させたくない場合に使用されます。

保護された Attributes 属性は、 Title または Description プロパティと同じ方法で実行されません。 ローカライズをサポートするには、開発者は既定のインデクサーを使用する必要があります。

適用対象

こちらもご覧ください