Share via


ProjectCreationMacroResolver.TryGetReplacement Method

Gets an individual macro replacement value.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.VisualStudio.TeamFoundation.Client (in Microsoft.VisualStudio.TeamFoundation.Client.dll)

Syntax

'Declaration
Public Function TryGetReplacement ( _
    macro As String, _
    <OutAttribute> ByRef replacement As String _
) As Boolean
public bool TryGetReplacement(
    string macro,
    out string replacement
)
public:
bool TryGetReplacement(
    String^ macro, 
    [OutAttribute] String^% replacement
)
member TryGetReplacement : 
        macro:string * 
        replacement:string byref -> bool
public function TryGetReplacement(
    macro : String, 
    replacement : String
) : boolean

Parameters

  • replacement
    Type: System.String%

    The resolved string together with valid macros.

Return Value

Type: System.Boolean
True if the input string was resolved; otherwise, false.

.NET Framework Security

See Also

Reference

ProjectCreationMacroResolver Class

Microsoft.TeamFoundation.Client Namespace