using System.Configuration;
Utiliser l'objet
ConfigurationManager:
string maPropriété = ConfigurationManager.AppSettings["maPropriété"];
Inspirations :
Developpez.com
using System.Configuration;
ConfigurationManager:
string maPropriété = ConfigurationManager.AppSettings["maPropriété"];
using System.Linq;
from Table in DataContext.Table select Table
(from Table in DataContext.Table select Table).Count()
// Le flux vers lequel on va exporter le fichier
Stream myStream;
// On filtre les fichiers de type XML
openFileDialog1.Filter = "xml files (*.xml)|*.xml|All files (*.*)|*.*";
openFileDialog1.FilterIndex = 1;
openFileDialog1.RestoreDirectory = true;
openFileDialog1.FileName = "save.xml";
// Affichage de la boîte de dialogue
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
// ReSharper disable ConditionIsAlwaysTrueOrFalse
if ((myStream = openFileDialog1.OpenFile()) != null)
// ReSharper restore ConditionIsAlwaysTrueOrFalse
{
myDataSet.ReadXml(myStream);
// On ferme la source
myStream.Close();
}
}
// Le flux vers lequel on va exporter le fichier
Stream myStream;
// On filtre les fichiers de type XML
saveFileDialog1.Filter = "xml files (*.xml)|*.xml|All files (*.*)|*.*";
saveFileDialog1.FilterIndex = 1;
saveFileDialog1.RestoreDirectory = true;
saveFileDialog1.FileName = "save.xml";
// Affichage de la boîte de dialogue
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
// ReSharper disable ConditionIsAlwaysTrueOrFalse
if ((myStream = saveFileDialog1.OpenFile()) != null)
// ReSharper restore ConditionIsAlwaysTrueOrFalse
{
myDataSet.WriteXml(myStream);
// On ferme la source
myStream.Close();
}
}
CookieContainer cookieContainer = new CookieContainer();
MonWebServiceClient Client = new MonWebServiceClient
{
UseDefaultCredentials = true,
CookieContainer = cookieContainer
};
Few days ago I would like to use docker from windows with docker composer. And because I am using ansible, I found easier to deal from Linux...