Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
WPF アプリケーションで新しいディレクトリを作成しようとすると、次のエラーが発生します。
" '指定されたバインディング制約に一致するタイプ 'NetworkApplication.Login' でのコンストラクターの呼び出しで例外がスローされました。' 行番号 '3' および行位置 '9'."
これは私のコード行です
DirectoryInfo di = Directory.CreateDirectory(@"C:\\Windows\\Newfolder1");
セキュリティの問題に加えて、@ が前にある文字列をエスケープしようとしています。@ を削除するか、スラッシュのエスケープを解除します。