SIPSorcery.SIP.SIPSchemesType.IsAllowedScheme C# (CSharp) Method

IsAllowedScheme() public static method

public static IsAllowedScheme ( string schemeType ) : bool
schemeType string
return bool
        public static bool IsAllowedScheme(string schemeType)
        {
            try
            {
                Enum.Parse(typeof(SIPSchemesEnum), schemeType, true);
                return true;
            }
            catch
            {
                return false;
            }
        }