次の方法で共有


ReportParameterCollection.Item プロパティ (String)

指定した名前の ReportParameter オブジェクトをコレクションから取得します。

名前空間:  Microsoft.Reporting.WebForms
アセンブリ:  Microsoft.ReportViewer.WebForms (Microsoft.ReportViewer.WebForms.dll)

構文

'宣言
Public ReadOnly Default Property Item ( _
    name As String _
) As ReportParameter
    Get
'使用
Dim instance As ReportParameterCollection
Dim name As String
Dim value As ReportParameter

value = instance(name)
public ReportParameter this[
    string name
] { get; }
public:
property ReportParameter^ default[String^ name] {
    ReportParameter^ get (String^ name);
}
member Item : ReportParameter
JScript では、インデックス付きのプロパティは使用できますが、新規に宣言することはできません。

パラメーター

  • name
    型: System.String
    取得する ReportParameter オブジェクトの名前。これは Name プロパティの値です。
    このパラメーターの大文字と小文字は区別されません。

プロパティ値

型: Microsoft.Reporting.WebForms.ReportParameter
見つかった場合は、指定した名前の ReportParameter。それ以外の場合は、null 参照 (Visual Basic の場合は Nothing)。

説明

コレクション内の複数のパラメーターが name パラメーターと一致する場合は、最初に一致したパラメーターが返されます。

関連項目

参照

ReportParameterCollection クラス

Item オーバーロード

Microsoft.Reporting.WebForms 名前空間