共用方式為


SPIisWebServiceApplication.AddServiceEndpoint method (String, SPIisWebServiceBindingType)

新增至 Web 服務應用程式的服務端點。

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

Syntax

'宣告
Public Overridable Function AddServiceEndpoint ( _
    name As String, _
    bindingType As SPIisWebServiceBindingType _
) As SPIisWebServiceEndpoint
'用途
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
)

參數

傳回值

Type: Microsoft.SharePoint.Administration.SPIisWebServiceEndpoint
SPIisWebServiceEndpoint 新增至 Web 服務應用程式。

請參閱

參照

SPIisWebServiceApplication class

SPIisWebServiceApplication members

AddServiceEndpoint overload

Microsoft.SharePoint.Administration namespace