Condividi tramite


VCProjectEngineObjectClass.Evaluate Method

Evaluates the value of a project model or environment macro.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Dichiarazione
Public Overridable Function Evaluate ( _
    In As String _
) As String
public virtual string Evaluate(
    string In
)
public:
virtual String^ Evaluate(
    [InAttribute] String^ In
)
abstract Evaluate : 
        In:string -> string 
override Evaluate : 
        In:string -> string 
public function Evaluate(
    In : String
) : String

Parameters

Return Value

Type: System.String
A string with the expanded macro.

Implements

VCProjectEngine.Evaluate(String)

Remarks

If the string you want to evaluate contains no macros, then you get exactly the same string back. See 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()

.NET Framework Security

See Also

Reference

VCProjectEngineObjectClass Class

Microsoft.VisualStudio.VCProjectEngine Namespace