指定したプロパティを持つプロパティ記述子を取得します。
名前空間: Microsoft.VisualStudio.Data
アセンブリ: Microsoft.VisualStudio.Data (Microsoft.VisualStudio.Data.dll 内)
構文
'宣言
Protected Function GetProperty ( _
name As String _
) As PropertyDescriptor
protected PropertyDescriptor GetProperty(
string name
)
protected:
PropertyDescriptor^ GetProperty(
String^ name
)
member GetProperty :
name:string -> PropertyDescriptor
protected function GetProperty(
name : String
) : PropertyDescriptor
パラメーター
- name
型 : System.String
記述子を取得するプロパティの名前。
戻り値
型 : System.ComponentModel.PropertyDescriptor
指定した名前のプロパティが存在しない場合は、指定されたプロパティを持つプロパティ記述子を返すか、または nullnull 参照 (Visual Basic では Nothing) を返します。
例外
| 例外 | 条件 |
|---|---|
| ArgumentNullException | name パラメーターが null です。 |
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。