This documentation is archived and is not being maintained.
CommandLineBuilderExtension Class
Visual Studio 2010
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Comprises extended utility methods for constructing a command line.
System::Object
Microsoft.Build.Utilities::CommandLineBuilder
Microsoft.Build.Tasks::CommandLineBuilderExtension
Microsoft.Build.Utilities::CommandLineBuilder
Microsoft.Build.Tasks::CommandLineBuilderExtension
Assembly: Microsoft.Build.Tasks.v4.0 (in Microsoft.Build.Tasks.v4.0.dll)
The CommandLineBuilderExtension type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CommandLineBuilderExtension | Infrastructure. Initializes a new instance of the CommandLineBuilderExtension class. |
| Name | Description | |
|---|---|---|
![]() | CommandLine | Gets the StringBuilder instance representing the command line for inheriting classes. (Inherited from CommandLineBuilder.) |
![]() | Length | Represents the length of the command line. (Inherited from CommandLineBuilder.) |
| Name | Description | |
|---|---|---|
![]() | AppendFileNameIfNotNull(ITaskItem) | Appends the command line with the file name of the specified ITaskItem object. (Inherited from CommandLineBuilder.) |
![]() | AppendFileNameIfNotNull(String) | Appends the command line with file name represented by the parameter, inserting quotation marks if necessary. (Inherited from CommandLineBuilder.) |
![]() | AppendFileNamesIfNotNull(array<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.) |
![]() | AppendFileNamesIfNotNull(array<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.) |
![]() | AppendFileNameWithQuoting | Appends the command line with a file name, and surrounds the file name with quotation marks as necessary. (Inherited from CommandLineBuilder.) |
![]() | AppendQuotedTextToBuffer | Appends given text to the buffer after first quoting the text if necessary. (Inherited from CommandLineBuilder.) |
![]() | AppendSpaceIfNotEmpty | Adds a space to the specified string, given the string is not empty. (Inherited from CommandLineBuilder.) |
![]() | AppendSwitch | Appends the command line with the specified switch. (Inherited from CommandLineBuilder.) |
![]() | AppendSwitchIfNotNull(String, ITaskItem) | Appends the command line with a switch that takes a task item specification that acts a single string parameter. (Inherited from CommandLineBuilder.) |
![]() | AppendSwitchIfNotNull(String, String) | Appends the command line with a switch that takes a single string parameter. (Inherited from CommandLineBuilder.) |
![]() | AppendSwitchIfNotNull(String, array<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.) |
![]() | AppendSwitchIfNotNull(String, array<String>, String) | Appends the command line with a switch that takes an array of string parameters. (Inherited from CommandLineBuilder.) |
![]() | AppendSwitchUnquotedIfNotNull(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.) |
![]() | AppendSwitchUnquotedIfNotNull(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.) |
![]() | AppendSwitchUnquotedIfNotNull(String, array<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.) |
![]() | AppendSwitchUnquotedIfNotNull(String, array<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.) |
![]() | AppendTextUnquoted | Appends the command line with string, without attempting to encapsulate the string with quotation marks. (Inherited from CommandLineBuilder.) |
![]() | AppendTextWithQuoting | Appends the command line with string, and surrounds the string with quotations marks as necessary. (Inherited from CommandLineBuilder.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetQuotedText | Infrastructure. Returns a quoted string appropriate for appending to a command line. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsQuotingRequired | Determines whether the specified string parameter should be surrounded with quotation marks because it contains white space. (Inherited from CommandLineBuilder.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns the command line as a string. (Inherited from CommandLineBuilder.) |
![]() | VerifyThrowNoEmbeddedDoubleQuotes | 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.) |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
