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

プロパティ値

NameValueCollectionSiteMapNodeTitle、および Description 以外の、Url の追加属性の Roles。属性が存在しない場合は null

例外

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

注釈

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

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

適用対象

こちらもご覧ください