共用方式為


SPCustomWebTemplate.FileName property

取得包含網站範本的.wsp 檔案的檔案名稱。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public ReadOnly Property FileName As String
    Get
'用途
Dim instance As SPCustomWebTemplate
Dim value As String

value = instance.FileName
public string FileName { get; }

Property value

Type: System.String
String ,表示檔案名稱 ;例如,"MyCustomWebTemplate.wsp"。

備註

FileName一定會有相同的值為SPWebTemplate.Name

請參閱

參照

SPCustomWebTemplate class

SPCustomWebTemplate members

Microsoft.SharePoint namespace