DataSourceInformation.GetType メソッド (String)

したがって、指定したプロパティの型を示す Type の値を取得して正しい型に取得した値の適切な変換を有効にします。

名前空間:  Microsoft.VisualStudio.Data.Framework
アセンブリ:  Microsoft.VisualStudio.Data.Framework (Microsoft.VisualStudio.Data.Framework.dll 内)

構文

'宣言
Protected Overridable Function GetType ( _
    propertyName As String _
) As Type
protected virtual Type GetType(
    string propertyName
)
protected:
virtual Type^ GetType(
    String^ propertyName
)
abstract GetType : 
        propertyName:string -> Type 
override GetType : 
        propertyName:string -> Type 
protected function GetType(
    propertyName : String
) : Type

パラメーター

  • propertyName
    型 : System.String
    型を取得するプロパティの名前。

戻り値

型 : System.Type
指定したプロパティの型を示す Type の値。

例外

例外 条件
ArgumentNullException

propertyName パラメーターが nullnull 参照 (Visual Basic では Nothing) です。

解説

プロパティが存在しない場合、既定の型としてこのメソッドは typeof(System.String)。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

DataSourceInformation クラス

GetType オーバーロード

Microsoft.VisualStudio.Data.Framework 名前空間