OperationFaultCollection.Item Property (String)

 

Gets an OperationFault by its name.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

Public ReadOnly Property Item (
	name As String
) As OperationFault

Parameters

name
Type: System.String

The name of the OperationFault returned.

Property Value

Type: System.Web.Services.Description.OperationFault

An OperationFault.

Dim myOperationFaultCollection As OperationFaultCollection = _
   myOperation.Faults
Dim myOperationFault As OperationFault = _
   myOperationFaultCollection("ErrorString")
If Not (myOperationFault Is Nothing) Then
   myOperationFaultCollection.Remove(myOperationFault)
End If

.NET Framework
Available since 1.1
Return to top
Show: