OperationFaultCollection.Item プロパティ (String)
Name プロパティによって OperationFault を取得します。
[C#] C# では、このプロパティは OperationFaultCollection クラスのインデクサになります。
Overloads Public Default ReadOnly Property Item( _
ByVal name As String _) As OperationFault
[C#]
public OperationFault this[stringname] {get;}
[C++]
public: __property OperationFault* get_Item(String* name);
[JScript]
returnValue = OperationFaultCollectionObject.Item(name);またはreturnValue = OperationFaultCollectionObject(name);
[JScript] JScript では、この型で定義されている既定のインデックス プロパティを使用することができます。しかし、独自のインデックス プロパティを明示的に定義することはできません。ただし、このクラスの expando 属性を指定すると、既定のインデックス プロパティが提供されます。提供されるインデックス プロパティの型は Object 型であり、インデックス型は String になります。
引数 [JScript]
- name
返される OperationFault の名前。
パラメータ [Visual Basic, C#, C++]
- name
返される OperationFault の名前。
プロパティ値
OperationFault 。
使用例
Dim myOperationFaultCollection As OperationFaultCollection = _
myOperation.Faults
Dim myOperationFault As OperationFault = _
myOperationFaultCollection("ErrorString")
If Not (myOperationFault Is Nothing) Then
myOperationFaultCollection.Remove(myOperationFault)
End If
[C#]
OperationFaultCollection myOperationFaultCollection =
myOperation.Faults;
OperationFault myOperationFault =
myOperationFaultCollection["ErrorString"];
if( myOperationFault != null )
{
myOperationFaultCollection.Remove(myOperationFault);
}
[C++]
OperationFaultCollection* myOperationFaultCollection =
myOperation->Faults;
OperationFault* myOperationFault =
myOperationFaultCollection->Item[S"ErrorString"];
if (myOperationFault != 0)
myOperationFaultCollection->Remove(myOperationFault);
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
OperationFaultCollection クラス | OperationFaultCollection メンバ | System.Web.Services.Description 名前空間 | OperationFaultCollection.Item オーバーロードの一覧