Share via


Attachment.GetTemporaryFilePath 方法

定义

返回临时文件文件夹中附加文件的完整路径。 只读。

public:
 System::String ^ GetTemporaryFilePath();
public string GetTemporaryFilePath ();
Public Function GetTemporaryFilePath () As String

返回

返回一个 String ,它表示临时附件文件的完整路径。

注解

GetTemporaryFilePath 方法仅对属性为 的olByValue附件Type有效。 这意味着该附件是一个副本,该副本可即使删除原始文件。 对于其他附件类型, GetTemporaryFilePath 方法将返回错误。

访问集合或 AttachmentSelection 对象中的 Attachments 对象时Attachment,GetTemporaryFilePath 还会返回错误。 使用 GetTemporaryFilePath 只在下面列出的各种Microsoft Outlook项的附件事件回调:

适用于