次の方法で共有


ItemProperties.Add Method

Adds an ItemProperty object to the ItemProperties collection.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function Add ( _
    Name As String, _
    Type As OlUserPropertyType, _
    AddToFolderFields As Object, _
    DisplayFormat As Object _
) As ItemProperty
'Usage
Dim instance As ItemProperties
Dim Name As String
Dim Type As OlUserPropertyType
Dim AddToFolderFields As Object
Dim DisplayFormat As Object
Dim returnValue As ItemProperty

returnValue = instance.Add(Name, Type, _
    AddToFolderFields, DisplayFormat)
[DispIdAttribute()]
ItemProperty Add(
    string Name,
    OlUserPropertyType Type,
    Object AddToFolderFields,
    Object DisplayFormat
)

Parameters

  • Name
    Type: System.String

    The name of the new item property object.

  • AddToFolderFields
    Type: System.Object

    Determines if the item property will be added to the folder fields.

  • DisplayFormat
    Type: System.Object

    Defines the format of the field as it appears in a given folder.

Return Value

Type: Microsoft.Office.Interop.Outlook.ItemProperty

Remarks

You can create a property of a type that is defined by the OlUserPropertyType enumeration, except for the following types: olEnumeration, olOutlookInternal, and olSmartFrom.

See Also

Reference

ItemProperties Interface

ItemProperties Members

Microsoft.Office.Interop.Outlook Namespace