Share via


SPIisWebServiceApplication.AddServiceEndpoint method (String, SPIisWebServiceBindingType, String)

Adds a service endpoint to the Web service application.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overridable Function AddServiceEndpoint ( _
    name As String, _
    bindingType As SPIisWebServiceBindingType, _
    relativeAddress As String _
) As SPIisWebServiceEndpoint
'Usage
Dim instance As SPIisWebServiceApplication
Dim name As String
Dim bindingType As SPIisWebServiceBindingType
Dim relativeAddress As String
Dim returnValue As SPIisWebServiceEndpoint

returnValue = instance.AddServiceEndpoint(name, _
    bindingType, relativeAddress)
public virtual SPIisWebServiceEndpoint AddServiceEndpoint(
    string name,
    SPIisWebServiceBindingType bindingType,
    string relativeAddress
)

Parameters

  • relativeAddress
    Type: System.String

    The address of the endpoint, relative to the base address of the Web service application.

Return value

Type: Microsoft.SharePoint.Administration.SPIisWebServiceEndpoint
The SPIisWebServiceEndpoint added to the Web service application.

See also

Reference

SPIisWebServiceApplication class

SPIisWebServiceApplication members

AddServiceEndpoint overload

Microsoft.SharePoint.Administration namespace