EmbeddedMailObject.Path 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定用來擷取項目以嵌入於用該 MailDefinition 類別建構的郵件訊息中的路徑。
public:
property System::String ^ Path { System::String ^ get(); void set(System::String ^ value); };
public string Path { get; set; }
member this.Path : string with get, set
Public Property Path As String
屬性值
回傳該項目的路徑,嵌入郵件訊息中。
備註
屬性 Path 指定你想嵌入郵件訊息中,並以宣告式 MailDefinition 建構物件的路徑。 檔案 Path 路徑必須是 C:\MyServer\Banner.gif這樣的路徑。 通常,嵌入的項目是一個影像檔案。 如果圖片檔案在郵件訊息中以識別碼被參考,但郵件本身並未包含,則該圖片在郵件訊息中會顯示為壞掉的附件。
在無障礙設計中,對於任何嵌入的圖片,在郵件中設定替代文字屬性是最佳實務。