UPCGMetadata::SetAttributeFromProperty

Set an attribute given a property and its value.