This documentation is archived and is not being maintained.
OperationFaultCollection::Add Method
Visual Studio 2008
Adds the specified OperationFault to the end of the OperationFaultCollection.
Assembly: System.Web.Services (in System.Web.Services.dll)
Parameters
- operationFaultMessage
- Type: System.Web.Services.Description::OperationFault
The OperationFault to add to the collection.
Return Value
Type: System::Int32The zero-based index where the operationFaultMessage parameter has been added.
OperationFaultCollection^ myOperationFaultCollection = myOperation->Faults; OperationFault^ myOperationFault = gcnew OperationFault; myOperationFault->Name = "ErrorString"; myOperationFault->Message = gcnew XmlQualifiedName( "s0:GetTradePriceStringFault" ); myOperationFaultCollection->Add( myOperationFault );
OperationFaultCollection * myOperationFaultCollection = myOperation->Faults; OperationFault* myOperationFault = new OperationFault(); myOperationFault->Name = S"ErrorString"; myOperationFault->Message = new XmlQualifiedName(S"s0:GetTradePriceStringFault"); myOperationFaultCollection->Add(myOperationFault);
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: