Etg.Yams.Storage.Config.AppDeploymentConfig.RemoveProperty C# (CSharp) Méthode

RemoveProperty() public méthode

public RemoveProperty ( string key ) : AppDeploymentConfig
key string
Résultat AppDeploymentConfig
        public AppDeploymentConfig RemoveProperty(string key)
        {
            if (Properties.ContainsKey(key))
            {
                return this;
            }
            Dictionary<string, string> dict = Properties.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
            dict.Remove(key);
            return new AppDeploymentConfig(AppIdentity, TargetClusters, dict);
        }