共用方式為


PublishObject.Filename Property

Returns or sets the URL (on the intranet or the Web) or path (local or network) to the location where the specified source object was saved.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property Filename As String
    Get
    Set
'Usage
Dim instance As PublishObject
Dim value As String

value = instance.Filename

instance.Filename = value
string Filename { get; set; }

Property Value

Type: System.String

Remarks

The Filename property generates an error if a folder in the specified path doesn’t exist.

See Also

Reference

PublishObject Interface

PublishObject Members

Microsoft.Office.Interop.Excel Namespace