SOLIDWORKS PDM Professional API Help Send Feedback
GetCardID Method (IEdmFolder5)
See Also  Example
EPDM.Interop.epdm Namespace > IEdmFolder5 Interface : GetCardID Method (IEdmFolder5)


bsExtension
Extension of file for which to get a data card ID; for example, "DWG" or "DOC" or "." to get the ID of the data card for this folder
Gets the ID of the data card of a file with the specified extension or the ID of the data card of this folder.

Syntax

Visual Basic 
Function GetCardID( _
   ByVal bsExtension As System.String _
) As System.Integer
C# 
System.int GetCardID( 
   System.string bsExtension
)
C++/CLI 
System.int GetCardID( 
&   System.String^ bsExtension
) 

Parameters

bsExtension
Extension of file for which to get a data card ID; for example, "DWG" or "DOC" or "." to get the ID of the data card for this folder

Return Value

ID of the data card; 0 if not found

Example

Remarks

If you need to access the entire card, call IEdmFolder5::GetCard.

Return codes:

  • S_OK: The method successfully executed.
  • S_FALSE: The card is not found.
 

See Also

Availability

SOLIDWORKS PDM Professional Version 5.2