共用方式為


_PropertyAccessor.GetProperty Method

Returns an Object that represents the value of the property specified by SchemaName.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function GetProperty ( _
    SchemaName As String _
) As Object
'Usage
Dim instance As _PropertyAccessor
Dim SchemaName As String
Dim returnValue As Object

returnValue = instance.GetProperty(SchemaName)
[DispIdAttribute()]
Object GetProperty(
    string SchemaName
)

Parameters

Return Value

Type: System.Object
An Object value that represents the value of the requested property as specified by SchemaName.

Remarks

The type of the return value will be the same as the type of the underlying property. Certain raw property types such as PT_OBJECT are unsupported and will raise an error. If you require conversion of the raw property type, for example, from PT_BINARY to a string, or from PT_SYSTIME to a local time, use the helper methods _PropertyAccessor.BinaryToString and _PropertyAccessor.UTCToLocalTime.

For more information on getting properties using the PropertyAccessor object, see Best Practices for Getting and Setting Properties.

See Also

Reference

_PropertyAccessor Interface

_PropertyAccessor Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get the Global Address List or a Set of Address Lists for a Store

How to: Get the Default Message Class of a Folder

How to: Access Solution-Specific Data Stored as a Hidden Message in a Folder

How to: Get the SMTP Address of the Sender of a Mail Item

How to: Get the Organizer of a Meeting

How to: Get the E-Mail Address of a Recipient