UserDefinedPropertiesClass.Add 方法

定义

这是在处理 COM coclass(托管代码需要此 Coclass 来实现与相应的 COM 对象的互操作性)时创建的 .NET 类或 .NET 类的成员。 仅当您需要在此类中访问的早期事件已在更新版本的 Outlook 中有了后续扩展时才使用此类。 否则,请使用派生自 COM Coclass 的 .NET 接口。 有关 .NET 接口的信息,请参阅 UserDefinedProperties

public virtual Microsoft.Office.Interop.Outlook.UserDefinedProperty Add (string Name, Microsoft.Office.Interop.Outlook.OlUserPropertyType Type, object DisplayFormat, object Formula);
Public Overridable Function Add (Name As String, Type As OlUserPropertyType, Optional DisplayFormat As Object, Optional Formula As Object) As UserDefinedProperty

参数

Name
String
DisplayFormat
Object
Formula
Object

返回

实现

适用于