UserDefinedProperty Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the definition of a user-defined property for a Folder object.
public interface class UserDefinedProperty : Microsoft::Office::Interop::Outlook::_UserDefinedProperty
[System.Runtime.InteropServices.Guid("0006305C-0000-0000-C000-000000000046")]
public interface UserDefinedProperty : Microsoft.Office.Interop.Outlook._UserDefinedProperty
Public Interface UserDefinedProperty
Implements _UserDefinedProperty
- 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 _UserDefinedProperty.
Use UserDefinedProperties(index
), where index
is a name or index number, to return a single UserDefinedProperty object.
Use the Add(String, OlUserPropertyType, Object, Object) method of the UserDefinedProperties collection for a Folder object to define a user-defined property for that folder.
Use the Type property to return the user-defined property type and the DisplayFormat property to return the display format for the user-defined property. If the Type property is set to olCombination or olFormula, use the Formula property to return the formula used to generate values for the user-defined property.
The UserDefinedProperty object represents only the definition of a user-defined property, which is 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 _UserDefinedProperty) |
Class |
Returns an OlObjectClass constant indicating the object's class. Read-only. (Inherited from _UserDefinedProperty) |
DisplayFormat |
Returns an Integer (int in C#) value that represents the display format for the UserDefinedProperty object. Read-only. (Inherited from _UserDefinedProperty) |
Formula |
Returns a String (string in C#) value that represents the formula for the UserDefinedProperty object. Read-only. (Inherited from _UserDefinedProperty) |
Name |
Returns a String (string in C#) value that represents the display name for the object. Read-only. (Inherited from _UserDefinedProperty) |
Parent |
Returns the parent Object of the specified object. Read-only. (Inherited from _UserDefinedProperty) |
Session |
Returns the NameSpace object for the current session. Read-only. (Inherited from _UserDefinedProperty) |
Type |
Returns an OlUserPropertyType constant indicating the type of the UserDefinedProperty object. Read-only. (Inherited from _UserDefinedProperty) |
Methods
Delete() |
Deletes an object from the collection. (Inherited from _UserDefinedProperty) |