/// <summary>
/// Returns the string representation of the object.
/// </summary>
/// <param name="format">(Unused). Always pass NULL/NOTHING</param>
/// <param name="formatProvider">(Unused). Always pass NULL/NOTHING</param>
/// <exception cref="FormatException">Thrown if non-null parameters are used</exception>
public string ToString(string format, IFormatProvider formatProvider)
{
if (format == null)
{
return(Utils.Format(
"{0} - [{1}:{2}:{3}]",
m_description.EndpointUrl,
m_description.SecurityMode,
SecurityPolicies.GetDisplayName(m_description.SecurityPolicyUri),
(m_configuration != null && m_configuration.UseBinaryEncoding)?"Binary":"XML"));
}
throw new FormatException(Utils.Format("Invalid format string: '{0}'.", format));
}