Share via


ScriptUtilities.ConvertEnumStringToInt Method (String)

 

Applies To: Windows Server Update Services

Converts an enumeration type and value string to the actual value.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

public int ConvertEnumStringToInt(
    string enumValueName
)
public:
int ConvertEnumStringToInt(
    String^ enumValueName
)
member ConvertEnumStringToInt : 
        enumValueName:string -> int
Public Function ConvertEnumStringToInt (
    enumValueName As String
) As Integer

Parameters

  • enumValueName
    Type: System.String

    The enumeration type and value.

Return Value

Type: System.Int32

The enumeration type and value.

Remarks

enumValueName should contain the name of the enumeration and its value. You do not need to specify "Microsoft.UpdateServices.Administration", as it is assumed by the API. For example, to get the integer value of the LogLevel enumeration, use "LogLevel.Verbose".

See Also

ScriptUtilities Class
Microsoft.UpdateServices.Administration Namespace

Return to top