<allowAccounts> 的 <add>

指定裝載 WCF 服務並獲得共用服務連線存取權之處理序的使用者帳戶。

<system.serviceModel.activation>

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

屬性和項目

屬性

屬性 描述

securityIdentifier

字串,指定用於識別使用者帳戶的唯一識別項。預設值為 LocalSystem、Administrators、NS、LS 和 IIS_USRS。

子項目

無。

父項目

項目 描述

<allowAccounts>

組態項目的集合,其中包含 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