SPWebApplication.WebConfigModifications property
會取得一群 web.config 修改已套用之 Web 應用程式的所有伺服器。如果前端 Web 應用程式未與後端 SQL server 上,web.config 修改只適用於前端 Web 應用程式。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property WebConfigModifications As Collection(Of SPWebConfigModification)
Get
'用途
Dim instance As SPWebApplication
Dim value As Collection(Of SPWebConfigModification)
value = instance.WebConfigModifications
public Collection<SPWebConfigModification> WebConfigModifications { get; }
Property value
Type: System.Collections.ObjectModel.Collection<SPWebConfigModification>
代表 web.config 修改SPWebConfigModification物件的集合。
備註
請注意父SPWebApplication物件中呼叫ApplyWebConfigModifications()方法之前,不可能會套用SPWebConfigModification新增至集合的物件。