共用方式為


SPFile.UIVersionLabel property

取得檔案的版本。

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

Syntax

'宣告
Public ReadOnly Property UIVersionLabel As String
    Get
'用途
Dim instance As SPFile
Dim value As String

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

Property value

Type: System.String
字串,包含檔案,包括主要和次要版本數字格式 「n.n」 的版本。

注意

這個屬性值的格式可能會變更在未來版本的SharePoint Foundation。因此,建議您不撰寫剖析或建構字串,包含這個屬性所指定的 UI 版本標籤格式的程式碼。

請參閱

參照

SPFile class

SPFile members

Microsoft.SharePoint namespace