UserDefinedProperties Interface

Definition

Contains a set of UserDefinedProperty objects representing the user-defined properties defined for a Folder object.

public interface class UserDefinedProperties : Microsoft::Office::Interop::Outlook::_UserDefinedProperties
[System.Runtime.InteropServices.Guid("00063047-0000-0000-C000-000000000046")]
public interface UserDefinedProperties : Microsoft.Office.Interop.Outlook._UserDefinedProperties
Public Interface UserDefinedProperties
Implements _UserDefinedProperties
Derived
Attributes
Implements

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _UserDefinedProperties.

The members of the UserDefinedProperties collection correspond to the fields under User-defined fields in folder that you get in the Show Fields dialog.

Use the UserDefinedProperties property to retrieve the UserDefinedProperties object from a Folder object.

Use the Add(String, OlUserPropertyType, Object, Object) method to define and add a user-defined property to, and the Remove(Int32) method to remove an existing user-defined property from, the UserDefinedProperties collection. Use the Item[Object] property (this in C#) to retrieve by name or index, or the Find(String) method to locate and retrieve by name, a UserDefinedProperty object from the UserDefinedProperties collection. Use the Refresh() method to reload the UserDefinedProperties collection from the store.

The UserDefinedProperties collection contains only the definitions of user-defined properties, which are applicable to all Outlook items contained by the folder. To retrieve or change user-defined property values for an Outlook item in that folder, use the UserProperties property of the Outlook item, such as a MailItem object, to retrieve the UserProperties collection for that item. You can then use the UserProperty object for the appropriate user-defined property to retrieve or change the value of that user-defined property for the Outlook item.

Properties

Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

(Inherited from _UserDefinedProperties)
Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

(Inherited from _UserDefinedProperties)
Count

Returns an Integer (int in C#) value that indicates the count of objects in the specified collection. Read-only.

(Inherited from _UserDefinedProperties)
Item[Object]

Returns an Object from the collection.

(Inherited from _UserDefinedProperties)
Parent

Returns the parent Object of the specified object. Read-only.

(Inherited from _UserDefinedProperties)
Session

Returns the NameSpace object for the current session. Read-only.

(Inherited from _UserDefinedProperties)

Methods

Add(String, OlUserPropertyType, Object, Object)

Creates a new UserDefinedProperty object and appends it to the collection.

(Inherited from _UserDefinedProperties)
Find(String)

Locate a UserDefinedProperty contained in the collection.

(Inherited from _UserDefinedProperties)
Refresh()

Refreshes the contents of the collection from the store, retrieving any changes performed in remote explorers.

(Inherited from _UserDefinedProperties)
Remove(Int32)

Removes an object from the collection.

(Inherited from _UserDefinedProperties)

Applies to