指定进程的用户帐户,这些进程承载 WCF 服务并被授予了对共享服务的连接访问权限。
<system.serviceModel.activation>
<allowAccounts>
   <add securityIdentifier="String"/>
</allowAccounts>
属性和元素
属性
| 属性 | 说明 | 
|---|---|
| securityIdentifier | 一个字符串,指定用于标识用户帐户的唯一标识符。默认值为 LocalSystem、Administrators、NS、LS 和 IIS_USRS。 | 
子元素
无。
父元素
| 元素 | Description | 
|---|---|
| 一个配置元素集合,这些元素所包含的 securityIdentifier 属性用于指定进程的用户帐户,这些进程承载 WCF 服务并被授予了对该共享服务的连接访问权限。 | 
示例
下面的配置示例将用户帐户的五个默认标识符添加到此集合中。
<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>
另请参见
参考
AllowAccounts
AllowAccounts
SecurityIdentifierElementCollection
SecurityIdentifierElement