Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » .NET » Intermédiaire   (RSS)

"The configuration section for Logging cannot be found in the configuration source." ou comment lire un fichier de configuration externe pour le Logging Application Block

Dans le cadre du Logging Application Block , l'utilisation d'IConfigurationSource pour lire une configuration externe peut provoquer une ConfigurationErrorsException("The configuration section for Logging cannot be found in the configuration source."),
Posted by lvovan | 0 Comments

Interaction entre Powershell et une application hôte .NET

Sujet inhabituel sur ce blog: l’interaction entre Powershell et une application hôte .NET. Les exemples disponibles sur MSDN montrent comment héberger des runspaces Powershell via les classes du namespace System.Management.Automation ; mais outre le simple
Posted by lvovan | 1 Comments
Attachment(s): Program.cs

Utilisation de flags binaires [Flags]

Ce post décrit comment utiliser et définir des flags binaires. Ceux-ci permettent de combiner facilement et lisiblement des propriétés. Un des exemples d’utilisation les plus populaires étant avec les attributs de fichiers : File .SetAttributes( @"C:\Temp\MonFichier"
Posted by lvovan | 1 Comments
Attachment(s): FlagsExample.cs
 
Page view tracker