public OpenSearchUrl AddSearchUrl(string template, string type = "application/opensearchdescription+xml", OpenSearchUrlRelValues?rel = OpenSearchUrlRelValues.Results) { if (string.IsNullOrEmpty(template)) { throw new ArgumentNullException(template); } var _url = new OpenSearchUrl() { Type = type, Rel = rel.Value, Template = template }; osd.Urls.Add(_url); return(_url); }
public OpenSearchUrl AddSearchUrl(string template, string type = "application/opensearchdescription+xml", OpenSearchUrlRelValues? rel = OpenSearchUrlRelValues.Results) { if (string.IsNullOrEmpty(template)) throw new ArgumentNullException(template); var _url = new OpenSearchUrl() { Type = type, Rel = rel.Value, Template = template }; osd.Urls.Add(_url); return _url; }