<add><allowAccounts>

指定托管 WCF 服务的进程的用户帐户,并被授予对共享服务的连接访问权限。

<configuration>
  <system.serviceModel.activation>
    <net.pipe>
      <allowAccounts>
        <add>

Syntax

<allowAccounts>
  <add securityIdentifier="String" />
</allowAccounts>

特性和元素

下列各节描述了特性、子元素和父元素。

特性

Attribute Description
securityIdentifier 一个字符串,指定用于标识用户帐户的唯一标识符。 默认值为 LocalSystem、Administrators、NS、LS 和 IIS_USRS。

子元素

没有。

父元素

元素 Description
<allowAccounts> 一组配置元素,其中包含一个 securityIdentifier 属性,用于指定托管 WCF 服务的进程的用户帐户,并被授予对共享服务的连接访问权限。

Example

以下配置示例将用户帐户的五个默认标识符添加到此集合。

<allowAccounts>
  <!-- LocalSystem account -->
  <add securityIdentifier="S-1-5-18" />
  <!-- LocalService account -->
  <add securityIdentifier="S-1-5-19" />
  <!-- Administrators account -->
  <add securityIdentifier="S-1-5-20" />
  <!-- Network Service account -->
  <add securityIdentifier="S-1-5-32-544" />
  <!-- IIS_IUSRS account (Vista only) -->
  <add securityIdentifier="S-1-5-32-568" />
</allowAccounts>

另请参阅