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


Starts an enumeration of all of the key-value pairs that have string keys.

Syntax

Visual Basic 
Function StringGetFirstPosition() As IEdmPos5
C# 
IEdmPos5 StringGetFirstPosition()
C++/CLI 
IEdmPos5^ StringGetFirstPosition(); 

Return Value

IEdmPos5; position of the first key-value pair

Example

Remarks

After calling this method, pass the position of the first key-value pair to IEdmDictionary5::StringGetNextAssoc to get the first key-value pair in the search result. Then call IEdmDictionary5::StringGetNextAssoc repeatedly to get the rest of the key-value pairs in the search result.

C++ programmers not using smart-pointer wrapper functions must release the returned pointer to IEdmPos5.

Return codes:

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

See Also

Availability

SOLIDWORKS PDM Professional Version 5.2