public void Refresh() { if (this.Count > 0) { this.Clear(); } IPortableDeviceProperties properties = null; this.content.Properties(out properties); IPortableDeviceValues values = null; properties.GetValues(this.objectID, null, out values); var count = 0U; values.GetCount(ref count); var key = new _tagpropertykey(); var propVar = new tag_inner_PROPVARIANT(); for (var i = 0U; i < count; i++) { values.GetAt(i, ref key, ref propVar); this.Add(WpdProperty.Create(key, propVar)); } }
public static IWpdProperty Create(_tagpropertykey key, float variantValue) { return(WpdProperty.Create(key, PROPVARIANT.Create_tag_inner_PROPVARIANT(variantValue))); }