bin/Be.Stateless.Dsl.Configuration.Cmdlets.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0"?>
<doc>
    <assembly>
        <name>Be.Stateless.Dsl.Configuration.Cmdlets</name>
    </assembly>
    <members>
        <member name="T:Be.Stateless.Dsl.Configuration.Cmdlet.AddConfigurationElement">
            <summary>
            Adds a configuration element.
            </summary>
            <example>
            <code>
            PS> Add-ConfigurationElement -TargetConfigurationFile global:machine.config -XPath '/configuration/appSettings' -ElementName 'add' -Attributes @{ key = 'setting1'; value = 'value1' }
            </code>
            </example>
            <example>
            <code>
            PS> Add-ConfigurationElement -TargetConfigurationFile global:machine.config -XPath '/configuration' -ElementName 'element' -Attributes @{ '{urn:custom:namespace}attribute' = 'setting1' }
            </code>
            </example>
        </member>
        <member name="T:Be.Stateless.Dsl.Configuration.Cmdlet.MergeConfigurationSpecification">
            <summary>
            Merges specification file(s) to one ore more configuration files.
            </summary>
            <example>
            <code>
            PS> Merge-ConfigurationSpecification -Path ./machine.config
            </code>
            </example>
        </member>
        <member name="T:Be.Stateless.Dsl.Configuration.Cmdlet.RemoveConfigurationElement">
            <summary>
            Removes an existing configuration element.
            </summary>
            <example>
            <code>
            PS> Remove-ConfigurationElement -TargetConfigurationFile global:machine.config -XPath "/configuration/appSettings/add[@key='setting1']"
            </code>
            </example>
            <example>
            <code>
            PS> Remove-ConfigurationElement -TargetConfigurationFile global:machine.config -XPath '/configuration/element'
            </code>
            </example>
        </member>
        <member name="T:Be.Stateless.Dsl.Configuration.Cmdlet.SetConfigurationElement">
            <summary>
            Set the attributes of an existing configuration element.
            </summary>
            <example>
            <code>
            PS> Set-ConfigurationElement -TargetConfigurationFile global:machine.config -XPath "/configuration/appSettings/add[@key='setting1']" -Attributes @{ value = 'value1' }
            </code>
            </example>
            <example>
            <code>
            PS> Set-ConfigurationElement -TargetConfigurationFile global:machine.config -XPath '/configuration/element' -Attributes @{ '{urn:custom:namespace}attribute' = 'setting1' }
            </code>
            </example>
        </member>
    </members>
</doc>