Given an enum value, get the id

Namespace: SynergyServerScripting.Entities
Assembly: SynergyServerScripting (in SynergyServerScripting.dll)

Public Shared Function GetEnumIDForValue( _ 
ByVal attrib_id As EntityID, _ 
ByVal enum_val As String, _ 
ByVal db As IDatabase
) As EntityID
This language is not supported or no code example is available.
public static EntityID GetEnumIDForValue( 
EntityID attrib_id
string enum_val
IDatabase db 
)
This language is not supported or no code example is available.
public:  
static EntityID^ GetEnumIDForValue( 
EntityID^ attrib_id
String^ enum_val
IDatabase^ db 
)
This language is not supported or no code example is available.
public static function GetEnumIDForValue( 
attrib_id : EntityID
enum_val : String
db : IDatabase 
) : EntityID;
This language is not supported or no code example is available.

Parameters

attrib_id
Type: EntityID

the attribute id this enum applies to

enum_val
Type: string

the enum value we're looking for

db
Type: IDatabase

the db connection to use

Return Value

Type: EntityID

the retrieved id - may be null if not found

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1