次の方法で共有


VCProjectEngineObjectClass.Evaluate(String) Method

Definition

Evaluates the value of a project model or environment macro.

public:
 virtual System::String ^ Evaluate(System::String ^ In) = Microsoft::VisualStudio::VCProjectEngine::VCProjectEngine::Evaluate;
public:
 virtual Platform::String ^ Evaluate(Platform::String ^ In) = Microsoft::VisualStudio::VCProjectEngine::VCProjectEngine::Evaluate;
 virtual std::wstring Evaluate(std::wstring const & In);
[System.Runtime.InteropServices.DispId(225)]
public virtual string Evaluate (string In);
[<System.Runtime.InteropServices.DispId(225)>]
abstract member Evaluate : string -> string
override this.Evaluate : string -> string
Public Overridable Function Evaluate (In As String) As String

Parameters

In
String

Required. The macro you want to expand.

Returns

A string with the expanded macro.

Implements

Attributes

Remarks

If the string you want to evaluate contains no macros, then you get exactly the same string back. See Common Macros for Build Commands and Properties for more information on these macros.

Do not instantiate VCProjectEngineObjectClass. Instantiate VCProjectEngineObject instead, as shown below:

Dim Engine As VCProjectEngine  
Engine = New VCProjectEngineObject()  

Applies to