RecommendedAsConfigurableAttribute.RecommendedAsConfigurable プロパティ
アセンブリ: System (system.dll 内)

Dim instance As RecommendedAsConfigurableAttribute Dim value As Boolean value = instance.RecommendedAsConfigurable
この属性が関連付けられているプロパティをアプリケーションの設定値として使用できる場合は true。それ以外の場合は false。

MyProperty に関連付けできるかどうかを確認する例を次に示します。最初に、次の方法で MyProperty の属性を取得します。
次に、myAttribute を AttributeCollection にある RecommendedAsConfigurableAttribute の値に設定し、プロパティを関連付けられるかどうかを確認します。
' Gets the attributes for the property. Dim attributes As AttributeCollection = _ TypeDescriptor.GetProperties(Me)("MyProperty").Attributes ' Checks to see if the property is recommended as configurable. Dim myAttribute As RecommendedAsConfigurableAttribute = _ CType(attributes(GetType(RecommendedAsConfigurableAttribute)), _ RecommendedAsConfigurableAttribute) If myAttribute.RecommendedAsConfigurable Then ' Insert code here. End If
// Gets the attributes for the property. AttributeCollection attributes = TypeDescriptor.GetProperties(this)["MyProperty"].Attributes; // Checks to see if the property is recommended as configurable. RecommendedAsConfigurableAttribute myAttribute = (RecommendedAsConfigurableAttribute)attributes[typeof(RecommendedAsConfigurableAttribute)]; if(myAttribute.RecommendedAsConfigurable) { // Insert code here. }
// Gets the attributes for the property. AttributeCollection^ attributes = TypeDescriptor::GetProperties( this )[ "MyProperty" ]->Attributes; // Checks to see if the property is recommended as configurable. RecommendedAsConfigurableAttribute^ myAttribute = dynamic_cast<RecommendedAsConfigurableAttribute^>(attributes[ RecommendedAsConfigurableAttribute::typeid ]); if ( myAttribute->RecommendedAsConfigurable ) { // Insert code here. }
// Gets the attributes for the property. AttributeCollection attributes = TypeDescriptor.GetProperties(this) .get_Item("MyProperty").get_Attributes(); // Checks to see if the property is recommended as configurable. RecommendedAsConfigurableAttribute myAttribute = ((RecommendedAsConfigurableAttribute)(attributes.get_Item (RecommendedAsConfigurableAttribute.class.ToType()))); if (myAttribute.get_RecommendedAsConfigurable()) { // Insert code here. }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からRecommendedAsConfigurableAttribute.RecommendedAsConfigurable プロパティを検索する場合は、下記のリンクをクリックしてください。

- RecommendedAsConfigurableAttribute.RecommendedAsConfigurable プロパティのページへのリンク