Opc.Ua.EventFilter.Result.GetLongString C# (CSharp) Method

GetLongString() public method

Returns a string containing the errors reported.
public GetLongString ( ) : string
return string
            public string GetLongString()
            {
                StringBuilder buffer = new StringBuilder();

                foreach (ServiceResult selectResult in SelectClauseResults)
                {
                    if (ServiceResult.IsBad(selectResult))
                    {
                        buffer.AppendFormat("Select Clause Error: {0}\r\n", selectResult.ToString());
                    }
                }

                if (ServiceResult.IsBad(WhereClauseResult.Status))
                {                    
                    buffer.AppendFormat("Where Clause Error: {0}\r\n", WhereClauseResult.Status.ToString());
                    
                    foreach (ContentFilter.ElementResult elementResult in WhereClauseResult.ElementResults)
                    {
                        if (elementResult != null && ServiceResult.IsBad(elementResult.Status))
                        {
                            buffer.AppendFormat("Element Error: {0}\r\n", elementResult.Status.ToString());
                                                        
                            foreach (ServiceResult operandResult in elementResult.OperandResults)
                            {
                                if (ServiceResult.IsBad(operandResult))
                                {
                                    buffer.AppendFormat("Operand Error: {0}\r\n",operandResult.ToString());
                                }
                            }
                        }
                    }
                }

                return buffer.ToString();
            }