PSClientError.GetErrorArray Method (String, List<PSErrorInfo >)
Gets an array containing all the items which were set as error items in a SOAP exception for a PSI method call.
Namespace: Microsoft.Office.Project.Server.Library
Assembly: Microsoft.Office.Project.Server.Library (in Microsoft.Office.Project.Server.Library.dll)
Syntax
'Declaration
Public Function GetErrorArray ( _
arrayName As String, _
<OutAttribute> ByRef errorInfoList As List(Of PSErrorInfo()) _
) As Object()
'Usage
Dim instance As PSClientError
Dim arrayName As String
Dim errorInfoList As List(Of PSErrorInfo())
Dim returnValue As Object()
returnValue = instance.GetErrorArray(arrayName, _
errorInfoList)
public Object[] GetErrorArray(
string arrayName,
out List<PSErrorInfo[]> errorInfoList
)
Parameters
- arrayName
Type: System.String
Name of the array, or a null reference (Nothing in Visual Basic) if the array has no name.
- errorInfoList
Type: System.Collections.Generic.List<[]>
Returned List<PSErrorInfo[]> of PSErrorInfo objects.
Return Value
Type: []
Array of error items. Also returns a List<PSErrorInfo[]> of PSErrorInfo arrays which describe all errors for each item.
Remarks
The type of the returned object array is the same as the type of the original array items.