共用方式為


SPFileSaveBinaryParameters.CreateVersion property

取得或設定值,指出是否版本控制已啟用,且有效時,是否建立新版本的檔案。

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

Syntax

'宣告
Public Property CreateVersion As Boolean
    Get
    Set
'用途
Dim instance As SPFileSaveBinaryParameters
Dim value As Boolean

value = instance.CreateVersion

instance.CreateVersion = value
public bool CreateVersion { get; set; }

Property value

Type: System.Boolean
true如果應該建立新的版本。否則, false。

請參閱

參照

SPFileSaveBinaryParameters class

SPFileSaveBinaryParameters members

Microsoft.SharePoint namespace