Class FileVersion
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Represents the file version of an m assembly. It consists of exactly 4 numbers separated by dots.
Represented as: "Major.Minor.Patch.Revision" For example: "3.0.0.599".
It supports all kinds of equality and comparisons.
Inheritance
Implements
Namespace: Stylelabs.M.Framework.Essentials.Versioning
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
Constructors
FileVersion()
Create a new instance.
Declaration
FileVersion(Int32, Int32, Int32, Int32)
Create a new instance.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | major |
Major version |
| System.Int32 | minor |
Minor version |
| System.Int32 | patch |
Patch version |
| System.Int32 | revision |
Revision version |
Properties
Major
Gets or sets the major version.
Declaration
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Minor
Gets or sets the minor version.
Declaration
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Patch
Gets or sets the patch version.
Declaration
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Revision
Gets or sets the revision.
Declaration
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
CompareTo(FileVersion)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FileVersion | other |
Returns
| Type | Description |
|---|---|
| System.Int32 |
Equals(FileVersion)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FileVersion | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Equals(Object)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GetHashCode()
Declaration
Returns
| Type | Description |
|---|---|
| System.Int32 |
Parse(String)
Parses the file version string to a FileVersion object.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fileVersion |
Returns
| Type | Description |
|---|---|
| FileVersion |
ToString()
Creates a string representation, e.g. "3.0.0.599". Represented as: "Major.Minor.Patch.CommitCount"
Declaration
Returns
| Type | Description |
|---|---|
| System.String |
The version |
TryParse(String, out FileVersion)
Tries to parse the fileVersion.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fileVersion | |
| FileVersion | result |
Returns
| Type | Description |
|---|---|
| System.Boolean |
true if |
Operators
Equality(FileVersion, FileVersion)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FileVersion | left | |
| FileVersion | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GreaterThan(FileVersion, FileVersion)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FileVersion | left | |
| FileVersion | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GreaterThanOrEqual(FileVersion, FileVersion)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FileVersion | left | |
| FileVersion | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(FileVersion, FileVersion)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FileVersion | left | |
| FileVersion | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
LessThan(FileVersion, FileVersion)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FileVersion | left | |
| FileVersion | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
LessThanOrEqual(FileVersion, FileVersion)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| FileVersion | left | |
| FileVersion | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |