RecommendedAsConfigurableAttribute.RecommendedAsConfigurable プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > RecommendedAsConfigurableAttribute.RecommendedAsConfigurable プロパティの意味・解説 

RecommendedAsConfigurableAttribute.RecommendedAsConfigurable プロパティ

この属性関連付けられているプロパティアプリケーション設定値として使用できるかどうかを示す値を取得します

名前空間: System.ComponentModel
アセンブリ: System (system.dll 内)
構文構文

Public ReadOnly Property
 RecommendedAsConfigurable As Boolean
Dim instance As RecommendedAsConfigurableAttribute
Dim value As Boolean

value = instance.RecommendedAsConfigurable
public bool RecommendedAsConfigurable { get;
 }
public:
property bool RecommendedAsConfigurable {
    bool get ();
}
/** @property */
public boolean get_RecommendedAsConfigurable ()
public function get RecommendedAsConfigurable
 () : boolean

プロパティ
この属性関連付けられているプロパティアプリケーション設定値として使用できる場合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.
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RecommendedAsConfigurableAttribute クラス
RecommendedAsConfigurableAttribute メンバ
System.ComponentModel 名前空間
RecommendedAsConfigurableAttribute クラス
Attribute
PropertyDescriptor クラス
AttributeCollection クラス
PropertyDescriptorCollection クラス


このページでは「.NET Framework クラス ライブラリ リファレンス」からRecommendedAsConfigurableAttribute.RecommendedAsConfigurable プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からRecommendedAsConfigurableAttribute.RecommendedAsConfigurable プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からRecommendedAsConfigurableAttribute.RecommendedAsConfigurable プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「RecommendedAsConfigurableAttribute.RecommendedAsConfigurable プロパティ」の関連用語

RecommendedAsConfigurableAttribute.RecommendedAsConfigurable プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



RecommendedAsConfigurableAttribute.RecommendedAsConfigurable プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS