次の方法で共有


TypeDescriptor.CreateProperty メソッド (Type, String, Type, Attribute )

型に関連付けられている指定したプロパティから記述子情報を動的に生成することにより、既存のプロパティ記述子と同一の新しいプロパティ記述子を作成します。

Overloads Public Shared Function CreateProperty( _
   ByVal componentType As Type, _   ByVal name As String, _   ByVal type As Type, _   ByVal ParamArray attributes() As Attribute _) As PropertyDescriptor
[C#]
public static PropertyDescriptor CreateProperty(TypecomponentType,stringname,Typetype,   params Attribute[] attributes);
[C++]
public: static PropertyDescriptor* CreateProperty(Type* componentType,String* name,Type* type,Attribute* attributes[]);
[JScript]
public static function CreateProperty(
   componentType : Type,name : String,type : Type,attributes : Attribute[]) : PropertyDescriptor;

パラメータ

  • componentType
    プロパティが関連付けられているコンポーネントの型。
  • name
    プロパティの名前。
  • type
    プロパティの型。
  • attributes
    プロパティの属性。

戻り値

型に関連付けられている PropertyDescriptor

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

TypeDescriptor クラス | TypeDescriptor メンバ | System.ComponentModel 名前空間 | TypeDescriptor.CreateProperty オーバーロードの一覧