C# Class Orchard.ContentManagement.VersionOptions

ファイルを表示 Open project: Sylapse/Orchard.ContentSerialization Class Usage Examples

Public Methods

Method Description
Number ( int version ) : VersionOptions

Gets a specific version based on its number.

Restore ( int version, bool publish = false ) : VersionOptions

Creates a new version based on the specified version number.

VersionRecord ( int id ) : VersionOptions

Gets a specific version based on the version record identifier.

Method Details

Number() public static method

Gets a specific version based on its number.
public static Number ( int version ) : VersionOptions
version int
return VersionOptions

Restore() public static method

Creates a new version based on the specified version number.
public static Restore ( int version, bool publish = false ) : VersionOptions
version int
publish bool
return VersionOptions

VersionRecord() public static method

Gets a specific version based on the version record identifier.
public static VersionRecord ( int id ) : VersionOptions
id int
return VersionOptions