Condividi tramite


SPIisWebServiceApplication.AddServiceEndpoint Method (String, SPIisWebServiceBindingType)

Adds a service endpoint to the Web service application.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

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

Parameters

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