SPFile.UIVersionLabel 属性

获取该文件的版本。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public ReadOnly Property UIVersionLabel As String
    Get
用法
Dim instance As SPFile
Dim value As String

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

属性值

类型:System.String
一个字符串,包含该文件,在"n.n"的格式中包括的主要版本号和次要版本号的版本。

警告

在将来的版本的SharePoint Foundation,可能会更改此属性值的格式。因此,建议您不编写代码,通过分析或构造的字符串包含在此属性中指定的 UI 版本标签的格式。

另请参阅

引用

SPFile 类

SPFile 成员

Microsoft.SharePoint 命名空间