internal static extern bool GetItemAttribute(IntPtr pItem, PackageAttribute eAttribute, out AttributeStruct pAttributeStruct);
protected static extern string GetPackageItemAttributeName(PackageAttribute eAttribute);
private static extern string GetPackageItemAttributeName(PackageAttribute eAttribute);
private static extern bool GetAttribute(PackageAttribute eAttribute, out AttributeStruct pAttributeStruct);
public string GetItemAttributeName(PackageAttribute attribute) { Bind(PackageID); return GetPackageItemAttributeName(attribute); }
public Attribute GetItemAttribute(Item item, PackageAttribute attribute) { Bind(PackageID); AttributeStruct attr; if (!GetItemAttribute(item.ItemPtr, attribute, out attr)) { throw new Exception("Unable to get item attribute."); } return new Attribute(attr); }
public Attribute GetAttribute(PackageAttribute attribute) { Bind(PackageID); AttributeStruct attr; if (!GetAttribute(attribute, out attr)) { throw new Exception("Unable to get attribute."); } return new Attribute(attr); }