grazie ma per cosa sta len? lenght?

Ho provato così:

codice:
int indice_m = prez.IndexOf("m");
            int prl = miastringa.Length;
            miastringa= miastringa.Substring(indice_m, prl);
in compilazione tutto ok in visualizzazione ho l'errore
Index and length must refer to a location within the string.
Parameter name: length