常用方法
常用方法
常用方法
常用方法
/// <summary> /// Gets the environment instance by name. /// </summary> /// <param name="environmentName">The environment name</param> /// <returns>The environment instance</returns> public WindowsAzureEnvironment GetEnvironment(string environmentName) { WindowsAzureEnvironment environment; if (!Environments.TryGetValue(environmentName, out environment)) { throw new KeyNotFoundException(string.Format(Resources.EnvironmentNotFound, environmentName)); } return(environment); }