Share via


SPWebConfigModification Constructor (String, String)

Initializes a new instance of the SPWebConfigModification class based on the specified modification name and node.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub New ( _
    name As String, _
    xpath As String _
)
'Usage
Dim name As String
Dim xpath As String

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

Parameters

  • name
    Type: System.String

    A string that contains the unique name of the modification.

  • xpath
    Type: System.String

    A string that contains an XPath expression that specifies that the node that is being modified. If the web.config modification type (SPWebConfigModification.SPWebConfigModificationType) is EnsureChildNode, the xpath attribute specifies the XPath expression for the parent node under which the node is created: for example, "/configuration/SharePoint/SafeControls".

See Also

Reference

SPWebConfigModification Class

SPWebConfigModification Members

SPWebConfigModification Overload

Microsoft.SharePoint.Administration Namespace