System.Uri.Uri.CheckSchemeName C# (CSharp) Метод

CheckSchemeName() публичный статический Метод

public static CheckSchemeName ( string schemeName ) : bool
schemeName string
Результат bool
		public static bool CheckSchemeName (string schemeName) 
		{
			if (schemeName == null || schemeName.Length == 0)
				return false;
			
			if (!IsAlpha (schemeName [0]))
				return false;

			int len = schemeName.Length;
			for (int i = 1; i < len; i++) {
				char c = schemeName [i];
				if (!Char.IsDigit (c) && !IsAlpha (c) && c != '.' && c != '+' && c != '-')
					return false;
			}
			
			return true;
		}