Partager via


_PropertyAccessor.GetProperties Method

Obtains the values of the properties specified by the one-dimensional array SchemaNames.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function GetProperties ( _
    SchemaNames As Object _
) As Object
'Usage
Dim instance As _PropertyAccessor
Dim SchemaNames As Object
Dim returnValue As Object

returnValue = instance.GetProperties(SchemaNames)
[DispIdAttribute()]
Object GetProperties(
    Object SchemaNames
)

Parameters

Return Value

Type: System.Object
An Object that represents an array of values of the properties specified in the parameter SchemaNames. The number of elements in the returned array equals the number of elements in the SchemaNames array. If an error occurs for getting a specific property, the Err value will be returned in the corresponding location in the returned array.

Remarks

The array returned by GetProperties can contain elements of different types, depending on the type of the property requested. The type of the array element returned by GetProperties 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