.NET Framework Class Library
Revision.ReleaseIsMajor Method

<< Click to Display Table of Contents >>

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

.NET Framework Class Library
Revision.ReleaseIsMajor Method

This method is the result of porting the legacy OnNewRev.lib library from VBScript to .NET. Determines whether the given revision is a major 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 ReleaseIsMajor ( _

lastRevision As String _
) As Boolean

C#

public bool ReleaseIsMajor(

string lastRevision
)

Visual C++

public:

bool ReleaseIsMajor(
String^ lastRevision
)

JavaScript

function releaseIsMajor(lastRevision);

Parameters

lastRevision

Type: System.String
The revision string to evaluate.

Return Value

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

Remarks

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

See Also

Revision Class

Revision Members

MwPDMApi Namespace