Compartilhar via


IVsBuildManagerAccessor.Escape(String, String) Method

Definition

Prepares a string to be persisted within MSBuild without evaluation.

public:
 int Escape(System::String ^ pwszUnescapedValue, [Runtime::InteropServices::Out] System::String ^ % pbstrEscapedValue);
int Escape(std::wstring const & pwszUnescapedValue, [Runtime::InteropServices::Out] std::wstring const & & pbstrEscapedValue);
public int Escape (string pwszUnescapedValue, out string pbstrEscapedValue);
abstract member Escape : string * string -> int
Public Function Escape (pwszUnescapedValue As String, ByRef pbstrEscapedValue As String) As Integer

Parameters

pwszUnescapedValue
String

The unescaped value.

pbstrEscapedValue
String

[out] The escaped value.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to