C# 클래스 SenseNet.ContentRepository.Storage.VersionNumber

VersionNumber is for handling version numbers in major.minor form.
상속: IComparable, ICloneable
파일 보기 프로젝트 열기: maxpavlov/FlexNet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Header VersionNumber
LastAccessible VersionNumber
LastMajor VersionNumber
LastMinor VersionNumber

공개 메소드들

메소드 설명
ChangeStatus ( VersionStatus versionStatus ) : VersionNumber
Clone ( ) : VersionNumber

Clones this instance.

CompareTo ( object obj ) : int

Compares the current instance with another object of the same type.

Equals ( object obj ) : bool

Determines whether the specified is equal to the current .

GetHashCode ( ) : int

Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table.

Parse ( string versionStr ) : VersionNumber

Parses the specified version string. Valid format is the following: Optional prefix: "V" or "v", major number, ".", minor number. For example: V1.0, 2.3, v12.3456

ToDisplayText ( ) : string
ToString ( ) : string

Returns a that represents the current .

TryParse ( string versionString, VersionNumber &version ) : bool

Parses the specified version string. Valid format is the following: ((['V'|'v'])?[majornumber][.][minornumber]([.][*]+)?)|'lastmajor'|'lastminor' For example: V1.0, 2.3, v12.3456, lastmajor

VersionNumber ( int major, int minor ) : System
VersionNumber ( int major, int minor, VersionStatus status ) : System

Initializes a new instance of the VersionNumber class.

operator ( ) : bool

Implements the operator ==.

비공개 메소드들

메소드 설명
GetVersionStatus ( string statusString ) : VersionStatus
ICloneable ( ) : object

Creates a new object that is a copy of the current instance.

VersionNumber ( AbstractVersion abstractVersion ) : System

메소드 상세

ChangeStatus() 공개 메소드

public ChangeStatus ( VersionStatus versionStatus ) : VersionNumber
versionStatus VersionStatus
리턴 VersionNumber

Clone() 공개 메소드

Clones this instance.
public Clone ( ) : VersionNumber
리턴 VersionNumber

CompareTo() 공개 메소드

Compares the current instance with another object of the same type.
obj is not the same type as this instance.
public CompareTo ( object obj ) : int
obj object An object to compare with this instance.
리턴 int

Equals() 공개 메소드

Determines whether the specified is equal to the current .
public Equals ( object obj ) : bool
obj object The to compare with the current .
리턴 bool

GetHashCode() 공개 메소드

Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table.
public GetHashCode ( ) : int
리턴 int

Parse() 공개 정적인 메소드

Parses the specified version string. Valid format is the following: Optional prefix: "V" or "v", major number, ".", minor number. For example: V1.0, 2.3, v12.3456
public static Parse ( string versionStr ) : VersionNumber
versionStr string The version string.
리턴 VersionNumber

ToDisplayText() 공개 메소드

public ToDisplayText ( ) : string
리턴 string

ToString() 공개 메소드

Returns a that represents the current .
public ToString ( ) : string
리턴 string

TryParse() 공개 정적인 메소드

Parses the specified version string. Valid format is the following: ((['V'|'v'])?[majornumber][.][minornumber]([.][*]+)?)|'lastmajor'|'lastminor' For example: V1.0, 2.3, v12.3456, lastmajor
public static TryParse ( string versionString, VersionNumber &version ) : bool
versionString string The version string
version VersionNumber Parsed VersionNumber if conversion was successful.
리턴 bool

VersionNumber() 공개 메소드

public VersionNumber ( int major, int minor ) : System
major int
minor int
리턴 System

VersionNumber() 공개 메소드

Initializes a new instance of the VersionNumber class.
public VersionNumber ( int major, int minor, VersionStatus status ) : System
major int The major verion number.
minor int The minor version number.
status VersionStatus The version status.
리턴 System

operator() 공개 정적인 메소드

Implements the operator ==.
public static operator ( ) : bool
리턴 bool

프로퍼티 상세

Header 공개적으로 정적으로 프로퍼티

public static VersionNumber,SenseNet.ContentRepository.Storage Header
리턴 VersionNumber

LastAccessible 공개적으로 정적으로 프로퍼티

public static VersionNumber,SenseNet.ContentRepository.Storage LastAccessible
리턴 VersionNumber

LastMajor 공개적으로 정적으로 프로퍼티

public static VersionNumber,SenseNet.ContentRepository.Storage LastMajor
리턴 VersionNumber

LastMinor 공개적으로 정적으로 프로퍼티

public static VersionNumber,SenseNet.ContentRepository.Storage LastMinor
리턴 VersionNumber