CommandLineBuilder.VerifyThrowNoEmbeddedDoubleQuotes(String, String) Method

Definition

Throws if the parameter has a double-quote in it. This is used to prevent parameter injection. It's virtual so that tools can override this method if they want to have quotes escaped in filenames

C#
protected virtual void VerifyThrowNoEmbeddedDoubleQuotes(string switchName, string parameter);

Parameters

switchName
String

Switch name for error message

parameter
String

Switch parameter to scan

Remarks

VerifyThrowNoEmbeddedDoubleQuotes is a virtual method so that your applications can override this method if you want to allow double-quotes escaped in filenames.

Applies to

Produto Versións
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17