我想知道如何使用VB.NET获取outlook默认的PST大小 [英] I want to know that how can I get the outlook default PST size by using VB.NET

查看:103
本文介绍了我想知道如何使用VB.NET获取outlook默认的PST大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何使用VB.net获取默认Outlook PST文件的大小。

我想在项目的主页面上显示这个,以便如果pst大小超过3 GB然后显示弹出消息。

先谢谢。



我尝试过:



I want to know how can I get the size of the default Outlook PST file by using VB.net.
I want to display this on the Main page of my project so that if the pst size exceeds 3 GB then it shows pop up message.
Thanks in Advance.

What I have tried:

.

推荐答案

假设你知道.pst文件的位置,你可以使用 System.IO.FileInfo ,请参见此处的示例: [ Dotnetperls ]



也许这将有助于找到.pst文件的路径: winapi - 如何查找Outlook .pst文件的完整路径? - 堆栈溢出 [ ^ ]

使用上面的示例时,请务必先添加 Microsoft.Office.Interop.Outlook 引用,然后输入命名空间,请参见此处的解释:未声明Outlook [ ^ ]
Assuming that you know the location of the .pst file, you can use System.IO.FileInfo, see example here: [Dotnetperls]

Maybe this will be of help finding the path of the .pst file: winapi - How to find full path of Outlook .pst file? - Stack Overflow[^]
When using the above example, be sure to add Microsoft.Office.Interop.Outlook reference first, then you should import namespace, see explanation here: Outlook is not declared[^]


这篇关于我想知道如何使用VB.NET获取outlook默认的PST大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆