.NET Framework Class Library
Document.GetIdFromFullFileName Method

<< Click to Display Table of Contents >>

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

.NET Framework Class Library
Document.GetIdFromFullFileName Method

Retrieves DocID and DocUid from full file name and a configuration (if specified).

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

Syntax

Visual Basic

Public Function GetIdFromFullFileName ( _

dirn As String, _
filen As String, _
ByRef DocUid As String, _
Optional Cfg As String = "" _
) As String

C#

public string GetIdFromFullFileName(

string dirn,
string filen,
ref string DocUid,
string Cfg = ""
)

Visual C++

public:

String^ GetIdFromFullFileName(
String^ dirn,
String^ filen,
String^% DocUid,
String^ Cfg = L""
)

JavaScript

function getIdFromFullFileName(dirn, filen, DocUid, Cfg);

Parameters

dirn

Type: System.String
directory name (the path)

filen

Type: System.String
filename

DocUid

Type: System.String
Output. The document unique id

Cfg (Optional)

Type: System.String
Optional. Configuration

Return Value

This function assumes the value of the document ID

Remarks

See Also

Document Class

Document Members

MwPDMApi Namespace