共用方式為


MAPIFolder.DefaultMessageClass Property

Returns a String (string in C#) representing the default message class for items in the folder. Read-only.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property DefaultMessageClass As String
    Get
'Usage
Dim instance As MAPIFolder
Dim value As String

value = instance.DefaultMessageClass
[DispIdAttribute()]
string DefaultMessageClass { get; }

Property Value

Type: System.String

See Also

Reference

MAPIFolder Interface

MAPIFolder Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Select a Folder and Display Folder Information

How to: Get the Default Message Class of a Folder