CommandLineBuilderExtension Class

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Comprises extended utility methods for constructing a command line.

Namespace:   Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.v4.0 (in Microsoft.Build.Tasks.v4.0.dll)

System.Object
  Microsoft.Build.Utilities.CommandLineBuilder
    Microsoft.Build.Tasks.CommandLineBuilderExtension

public class CommandLineBuilderExtension : CommandLineBuilder

NameDescription
System_CAPS_pubmethodCommandLineBuilderExtension()

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the CommandLineBuilderExtension class.

NameDescription
System_CAPS_protpropertyCommandLine

Gets the StringBuilder instance representing the command line for inheriting classes.(Inherited from CommandLineBuilder.)

System_CAPS_pubpropertyLength

Represents the length of the command line.(Inherited from CommandLineBuilder.)

NameDescription
System_CAPS_pubmethodAppendFileNameIfNotNull(ITaskItem)

Appends the command line with the file name of the specified ITaskItem object.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendFileNameIfNotNull(String)

Appends the command line with file name represented by the parameter, inserting quotation marks if necessary.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendFileNamesIfNotNull(ITaskItem[], String)

Appends the command line with the list of file names in the specified ITaskItem array, separated by the specified delimiter.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendFileNamesIfNotNull(String[], String)

Appends the command line with the list of file names in the specified string array, separated by the specified delimiter.(Inherited from CommandLineBuilder.)

System_CAPS_protmethodAppendFileNameWithQuoting(String)

Appends the command line with a file name, and surrounds the file name with quotation marks as necessary.(Inherited from CommandLineBuilder.)

System_CAPS_protmethodAppendQuotedTextToBuffer(StringBuilder, String)

Appends given text to the buffer after first quoting the text if necessary.(Inherited from CommandLineBuilder.)

System_CAPS_protmethodAppendSpaceIfNotEmpty()

Adds a space to the specified string, given the string is not empty.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendSwitch(String)

Appends the command line with the specified switch.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendSwitchIfNotNull(String, ITaskItem)

Appends the command line with a switch that takes a task item specification that acts a single string parameter.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendSwitchIfNotNull(String, ITaskItem[], String)

Appends the command line with a switch that takes an array of task item specifications that act as string parameters.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendSwitchIfNotNull(String, String)

Appends the command line with a switch that takes a single string parameter.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendSwitchIfNotNull(String, String[], String)

Appends the command line with a switch that takes an array of string parameters.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendSwitchUnquotedIfNotNull(String, ITaskItem)

Appends the command line with a switch that takes a task item specification as a single string parameter, without attempting to encapsulate the switch parameter with quotation marks.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendSwitchUnquotedIfNotNull(String, ITaskItem[], String)

Appends the command line with a switch that takes an array of task item specifications that act as string parameters, without attempting to encapsulate them with quotation marks.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendSwitchUnquotedIfNotNull(String, String)

Appends the command line with a switch that takes a single string parameter, without attempting to encapsulate the switch parameter with quotation marks.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendSwitchUnquotedIfNotNull(String, String[], String)

Appends the command line with a switch that takes an array of string parameters, without attempting to encapsulate switch parameters with quotation marks.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodAppendTextUnquoted(String)

Appends the command line with string, without attempting to encapsulate the string with quotation marks.(Inherited from CommandLineBuilder.)

System_CAPS_protmethodAppendTextWithQuoting(String)

Appends the command line with string, and surrounds the string with quotations marks as necessary.(Inherited from CommandLineBuilder.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetQuotedText(String)

This API supports the product infrastructure and is not intended to be used directly from your code. Returns a quoted string appropriate for appending to a command line.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodIsQuotingRequired(String)

Determines whether the specified string parameter should be surrounded with quotation marks because it contains white space.(Inherited from CommandLineBuilder.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the command line as a string.(Inherited from CommandLineBuilder.)

System_CAPS_protmethodVerifyThrowNoEmbeddedDoubleQuotes(String, String)

Returns an error if the command line parameter contains a double-quote (") character. Because double quotes are illegal in command line parameters, this method helps prevent parameter injection attacks.(Inherited from CommandLineBuilder.)

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: