overload method etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
overload method etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

method overload with single method

private void ShowInfo(string info, bool stayOnPage = true)
{
PopupInfo1.SetFunctionality(stayOnPage);
}

usage:

ShowInfo("Policy not found!");

or

ShowInfo("Policy not found!", false);

web service - Use the MessageName property of the WebMethod custom attribute to specify unique message names for the methods

Step 1: Use diffrent MessageName attribute values.

public class MyWS : System.Web.Services.WebService
{
[WebMethod(MessageName = "GetItemById")]
public Item GetItem(int id)
{
...
}

[WebMethod(MessageName = "GetItemByUniqueTitle")]
public Item GetItem(string uniqueTitle)
{
...
}
}

Step 2: Set your webservice binding: ConformsTo = WsiProfiles.None

search this blog (most likely not here)