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


bsName
Name of the label; maximum of 255 characters
bsDescription
Label description to show in the history dialog box; maximum of 2000 characters
Creates a label with the specified name and description for this file.

Syntax

Visual Basic 
Function CreateLabel( _
   ByVal bsName As System.String, _
   ByVal bsDescription As System.String _
) As System.Integer
C# 
System.int CreateLabel( 
   System.string bsName,
   System.string bsDescription
)
C++/CLI 
System.int CreateLabel( 
&   System.String^ bsName,
&   System.String^ bsDescription
) 

Parameters

bsName
Name of the label; maximum of 255 characters
bsDescription
Label description to show in the history dialog box; maximum of 2000 characters

Return Value

ID of the file label

Example

Remarks

Use IEdmVault5::GetObject to get the IEdmLabel5 object for this label.

Return codes:

  • S_OK: The method successfully executed.
  • S_FALSE: One of the arguments in invalid.
 

See Also

Availability

SOLIDWORKS PDM Professional 2019 SP04