-1
我想打電話給公衆解釋成我的主要呼籲公衆解釋與參數
public static void Main(string[] args)
{
Console.Write(GetServiceOutput());
Console.Write(ReadRecords('A'));
Console.Read();
}
public Dictionary<string, string> ReadRecords(string type)
{
var result = new Dictionary<string, string>();
var client = new AmazonRoute53Client();
var request = new ListResourceRecordSetsRequest();
var list = client.ListResourceRecordSetsAsync(request);
foreach (var recordSet in list.Result.ResourceRecordSets)
{
var values = recordSet.ResourceRecords.Select(p => p.Value);
result.Add(recordSet.Name, string.Join(",", values));
}
return result;
}
它不能找到「ReadRecords」,但類存在有人能幫忙嗎?我只是困惑於打電話字典,試圖讓我的頭在這附近。
'ReadRecords'應該是靜態的。 – Scott
@Scott謝謝 – user3622142