.NET Framework Class Library
Revision.ReleaseIsMinor Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > Revision Class > Revision Methods >

.NET Framework Class Library
Revision.ReleaseIsMinor Method

This method is the result of porting the legacy OnNewRev.lib library from VBScript to .NET. Determines whether the given revision is a minor release based on the global revision phase settings and the provided revision string.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function ReleaseIsMinor ( _

lastRevision As String, _
ByRef lastMajor As String, _
ByRef lastMinor As String _
) As Boolean

C#

public bool ReleaseIsMinor(

string lastRevision,
ref string lastMajor,
ref string lastMinor
)

Visual C++

public:

bool ReleaseIsMinor(
String^ lastRevision,
String^% lastMajor,
String^% lastMinor
)

JavaScript

function releaseIsMinor(lastRevision, lastMajor, lastMinor);

Parameters

lastRevision

Type: System.String
The revision string to evaluate.

lastMajor

Type: System.String
The major part of the revision if it is a minor release.

lastMinor

Type: System.String
The minor part of the revision if it is a minor release.

Return Value

True if the revision is identified as a minor release; otherwise, False.

Remarks

The function checks if the global revision phase C is enabled and verifies if the provided revision exists in both the major and minor revision lists (GlobaleRevPhaseBarray and GlobaleRevPhaseCarray). It also considers the presence of the global revision separator for additional validation.

See Also

Revision Class

Revision Members

MwPDMApi Namespace