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)
Available in Sandboxed Solutions: No
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
name
Type: System.StringThe name of the endpoint.
bindingType
Type: Microsoft.SharePoint.Administration.SPIisWebServiceBindingTypeThe SPIisWebServiceBindingType of the endpoint.
relativeAddress
Type: System.StringThe 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