次の方法で共有


PSDataTable.GetColumnAsString メソッド (DataRow, String, String)

DataRowオブジェクト内の指定した列の文字列値または既定値を取得します。

名前空間:  Microsoft.Office.Project.Server.Library
アセンブリ:  Microsoft.Office.Project.Server.Library (Microsoft.Office.Project.Server.Library.dll 内)

構文

'宣言
Public Shared Function GetColumnAsString ( _
    row As DataRow, _
    colName As String, _
    defaultValue As String _
) As String
'使用
Dim row As DataRow
Dim colName As String
Dim defaultValue As String
Dim returnValue As String

returnValue = PSDataTable.GetColumnAsString(row, _
    colName, defaultValue)
public static string GetColumnAsString(
    DataRow row,
    string colName,
    string defaultValue
)

パラメーター

  • defaultValue
    型: System.String

    既定値を返すには、 null 参照 (Visual Basic のNothing )は、 rowまたはcolNameのいずれかの場合。

戻り値

型: System.String
指定した列の文字列値を返します。rowまたはcolNameのいずれかが、 null 参照 (Visual Basic のNothing )、 String.Emptyを返します。

関連項目

参照先

PSDataTable クラス

PSDataTable メンバー

GetColumnAsString オーバーロード

Microsoft.Office.Project.Server.Library 名前空間