共用方式為


SPWebConfigModification constructor (String, String)

初始化依據指定的修改名稱和節點SPWebConfigModification類別的新執行個體。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Sub New ( _
    name As String, _
    xpath As String _
)
'用途
Dim name As String
Dim xpath As String

Dim instance As New SPWebConfigModification(name, xpath)
public SPWebConfigModification(
    string name,
    string xpath
)

參數

  • name
    Type: System.String

    包含所作的修改的唯一名稱字串。

  • xpath
    Type: System.String

    字串,包含 XPath 運算式,指定所要修改的節點。如果EnsureChildNodeweb.config 修改類型 (SPWebConfigModification.SPWebConfigModificationType), xpath屬性會指定在其下建立之節點的父節點的 XPath 運算式: 例如,"/configuration/SharePoint/SafeControls"。

請參閱

參照

SPWebConfigModification class

SPWebConfigModification members

SPWebConfigModification overload

Microsoft.SharePoint.Administration namespace