共用方式為


SPWebService.WcfServiceSettings Property

Gets a dictionary list that provides the settings of the WCF services that use the service factory of MultipleBaseAddressWebServiceHostFactory, MultipleBaseAddressDataServiceHostFactory, and MultipleBaseAddressBasicHttpBindingServiceHostFactory.

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

Syntax

'Declaration
Public ReadOnly Property WcfServiceSettings As Dictionary(Of String, SPWcfServiceSettings)
    Get
'Usage
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>
A Dictionary<TKey, TValue> object that maps between a set of strings providing service names and a set of SPWcfServiceSettings objects, each of which represents the settings for a given service.

Remarks

The key is the service name in lowercase, for example, “client.svc”; the value provides the settings for that service.

See Also

Reference

SPWebService Class

SPWebService Members

Microsoft.SharePoint.Administration Namespace