共用方式為


Office) (DocumentProperty.LinkSource 屬性

會取得或設定所連結之自訂文件屬性的來源。 讀取/寫入。

語法

運算式LinkSource (pbstrSourceRetVal)

表達 代表 DocumentProperty 物件的 變數。

參數

名稱 必要/選用 資料類型 描述
pbstrSourceRetVal 必要 String 代表文件屬性的來源名稱。

註解

本屬性只用於自訂文件屬性,無法用於內建文件屬性。

指定連線的連結來源由收納器應用程式定義。

設定 LinkSource 屬性將 LinkToContent 屬性設定為 True

範例

本範例會顯示連結的自訂文件屬性的狀態。 範例正常執行、 dp 必須是有效的 DocumentProperty 物件。

Sub DisplayLinkStatus(dp As DocumentProperty) 
 Dim stat As String, tf As String 
 If dp.LinkToContent Then 
 tf = "" 
 Else 
 tf = "not " 
 End If 
 stat = "This property is " & tf & "linked" 
 If dp.LinkToContent Then 
 stat = stat + Chr(13) & "The link source is " & dp.LinkSource 
 End If 
 MsgBox stat 
End Sub

另請參閱

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應