AzureDNSManager.AzureDNSViewModel.GetRecordType C# (CSharp) Method

GetRecordType() protected method

protected GetRecordType ( string type ) : RecordType
type string
return RecordType
        protected  RecordType GetRecordType(string type)
        {
            switch(type)
            {
                case "Microsoft.Network/dnszones/A":
                    return RecordType.A;
                case "Microsoft.Network/dnszones/AAAA":
                    return RecordType.AAAA;
                case "Microsoft.Network/dnszones/CNAME":
                    return RecordType.CNAME;
                case "Microsoft.Network/dnszones/MX":
                    return RecordType.MX;
                case "Microsoft.Network/dnszones/PTR":
                    return RecordType.PTR;
                case "Microsoft.Network/dnszones/SRV":
                    return RecordType.SRV;
                case "Microsoft.Network/dnszones/TXT":
                    return RecordType.TXT;
            }
            throw new ArgumentException("Not a valid record type to be updated!");
        }
        protected async void DeleteRecord(object param)