共用方式為


SPWebService.WcfServiceSettings property

取得字典清單,可提供使用MultipleBaseAddressWebServiceHostFactoryMultipleBaseAddressDataServiceHostFactory,及MultipleBaseAddressBasicHttpBindingServiceHostFactory服務原廠 WCF 服務的設定。

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

Syntax

'宣告
Public ReadOnly Property WcfServiceSettings As Dictionary(Of String, SPWcfServiceSettings)
    Get
'用途
Dim instance As SPWebService
Dim value As Dictionary(Of String, SPWcfServiceSettings)

value = instance.WcfServiceSettings
public Dictionary<string, SPWcfServiceSettings> WcfServiceSettings { get; }

Property value

Type: System.Collections.Generic.Dictionary<String, SPWcfServiceSettings>
一組提供服務名稱的字串與一組SPWcfServiceSettings物件,其中每一個代表指定之服務的設定之間對應Dictionary<TKey, TValue>物件。

備註

索引鍵是小寫,例如"client.svc;"的服務名稱此值會提供該服務的設定。

請參閱

參照

SPWebService class

SPWebService members

Microsoft.SharePoint.Administration namespace