RulesClass.Create(String, OlRuleType) 方法

定义

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

public:
 virtual Microsoft::Office::Interop::Outlook::Rule ^ Create(System::String ^ Name, Microsoft::Office::Interop::Outlook::OlRuleType RuleType) = Microsoft::Office::Interop::Outlook::_Rules::Create;
public virtual Microsoft.Office.Interop.Outlook.Rule Create (string Name, Microsoft.Office.Interop.Outlook.OlRuleType RuleType);
Public Overridable Function Create (Name As String, RuleType As OlRuleType) As Rule

参数

Name
String
RuleType
OlRuleType

返回

实现

适用于