예제 #1
0
            public T GetProperty <T>(PROPERTYKEY property)
            {
                var item = (IShellItem2)GetItem();

                try{
                    return((T)Propsys.PropVariantToVariant(item.GetProperty(ref property)));
                }finally{
                    Marshal.FinalReleaseComObject(item);
                }
            }