BusinessCardView.Standard 属性 (Outlook)

返回一个 布尔 值,该值指示 BusinessCardView 对象是否为内置的 Outlook 视图。 此为只读属性。

语法

expressionStandard

表达 返回 BusinessCardView 对象的表达式。

备注

在视图上可以只使用 Reset 方法如果此属性的值设置为 True

示例

下面的 Visual Basic for Applications (VBA) 示例枚举 视图 集合的当前 文件夹 对象,使用的 标准 属性来确定 视图 对象是内置的 Outlook 视图。 如果内置的 Outlook 视图的 视图 对象,本示例将调用 Reset 方法可将视图重置为其默认设置。 否则,示例使用 Delete 方法删除的视图。

Private Sub RemoveAllViewCustomization() 
 
 Dim objView As View 
 
 
 
 ' Enumerate each View object in the Views collection 
 
 ' of the current Folder object. 
 
 For Each objView In Application.ActiveExplorer.CurrentFolder.Views 
 
 ' If the View object is a built-in Outlook view, reset 
 
 ' the view to its default settings. If the View object 
 
 ' is a custom view, delete it. 
 
 If objView.Standard Then 
 
 objView.Reset 
 
 Else 
 
 objView.Delete 
 
 End If 
 
 Next 
 
End Sub

另请参阅

BusinessCardView 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。