SPIisWebServiceApplication.DefaultEndpointName property
SharePoint 2013
Gets the string that represents the service application default endpoint name.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)