.NET Framework Class Library
TraverseProjectsAssemblies.GetQuantityOfPartByUid Method

<< Click to Display Table of Contents >>

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

.NET Framework Class Library
TraverseProjectsAssemblies.GetQuantityOfPartByUid Method

Retrieves the quantity of a part identified by its UID encountered while traversing the Tree structure. Returns the quantity if the UID exists; otherwise, returns 0.

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

Syntax

Visual Basic

Public Function GetQuantityOfPartByUid ( _

uid As String _
) As Integer

C#

public int GetQuantityOfPartByUid(

string uid
)

Visual C++

public:

int GetQuantityOfPartByUid(
String^ uid
)

JavaScript

function getQuantityOfPartByUid(uid);

Parameters

uid

Type: System.String
The unique identifier of the part.

Return Value

The quantity of the specified part, or 0 if the part is not found.

See Also

TraverseProjectsAssemblies Class

TraverseProjectsAssemblies Members

MwPDMApi Namespace