public XElement GetAttributes(string domain, string itemName, bool useConsistency, params string[] attributeNames)
{
var values = new NameValueCollection
{
{"Action", "GetAttributes"},
{"DomainName", domain},
{"ItemName", itemName}
};
if (useConsistency)
{
values.Add("ConsistentRead", useConsistency.ToString());
}
int attributeCount = 0;
foreach (var attributeName in attributeNames)
{
values.Add(
string.Format("Attribute.{0}", attributeCount),
attributeName);
attributeCount++;
}
return InternalExecute(values);
}