官术网_书友最值得收藏!

Hardcoded data

Configuration data can be hardcoded inside DSC configuration files, but this is not optimal in most cases. You will mostly use this for static sets of information or to reduce redundant code, as shown in the following code snippet:

    configuration FooBar
{
$features = @('Web-Server', 'Web-Asp-Net45')

Foreach($feature in $features){
WindowsFeature "Install$($feature)"
{
Name = $feature
}
}
}
主站蜘蛛池模板: 桐梓县| 唐海县| 徐闻县| 霍林郭勒市| 安达市| 乌拉特中旗| 台湾省| 长治县| 花莲市| 沙坪坝区| 日照市| 西青区| 肇庆市| 台北市| 赤壁市| 阜平县| 师宗县| 綦江县| 赤城县| 西林县| 林西县| 崇州市| 岑巩县| 抚州市| 崇左市| 镇安县| 台东县| 邯郸县| 青龙| 宜兰县| 保亭| 凌源市| 克什克腾旗| 云梦县| 绥江县| 江门市| 海口市| 嘉兴市| 盘锦市| 昌江| 安乡县|