共用方式為


SPWebConfigModification.Path Property

Gets or sets the XPath expression that is used to locate the node that is being operated on.

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

Syntax

'Declaration
Public Property Path As String
    Get
    Set
'Usage
Dim instance As SPWebConfigModification
Dim value As String

value = instance.Path

instance.Path = value
public string Path { get; set; }

Property Value

Type: System.String
A string that contains an XPath expression that specifies the node. If the Type property specifies EnsureChildNode, the Path property contains the XPath expression for the parent node under which the node is created. For example, the following string specifies the path to specify for safe control entries: "/configuration/SharePoint/SafeControls".

See Also

Reference

SPWebConfigModification Class

SPWebConfigModification Members

Microsoft.SharePoint.Administration Namespace