SPWebConfigModification.Name property

Gets or sets the name of the attribute or section node that should be set.

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


Public Property Name As String
Dim instance As SPWebConfigModification
Dim value As String

value = instance.Name

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

Property value

Type: System.String
A string that contains the name of the attribute or section node.


When the type of web.config modification is EnsureChildNode, the Name property refers to an XPath expression that uniquely identifies the node under the parent node, as identified by the Path property. For example, to ensure a child node as a safe control entry, which has two unique attributes (e.g., Assembly and TypeName), the name should match the following XPath expression:


See also


SPWebConfigModification class

SPWebConfigModification members

Microsoft.SharePoint.Administration namespace