public void SetLocationConfig() { DefaultProfile.ClearDefaultProfile(); string regionId = "cn-hangzhou-1"; string product = "ecs"; string endpoint = "cn-hangzhou"; DefaultProfile profile = DefaultProfile.GetProfile(); profile.SetLocationConfig(regionId, product, endpoint); // locationConfig 为私有成员 无法获取 // Done With No Exception }