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)
Syntax
'Declaration
Public Property Name As String
Get
Set
'Usage
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.
Remarks
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:
SafeControl[@Assembly=\"Microsoft.Sharepoint\"][@TypeName=\"*\"]