Partilhar via


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

protected:
 virtual void VerifyThrowNoEmbeddedDoubleQuotes(System::String ^ switchName, System::String ^ parameter);
protected virtual void VerifyThrowNoEmbeddedDoubleQuotes (string switchName, string parameter);
abstract member VerifyThrowNoEmbeddedDoubleQuotes : string * string -> unit
override this.VerifyThrowNoEmbeddedDoubleQuotes : string * string -> unit
Protected Overridable Sub VerifyThrowNoEmbeddedDoubleQuotes (switchName As String, parameter As String)

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