Share via


ModelingTextTransformation.ConvertModelRelativePathToTemplateRelativePath Method

Convert a path expressed relative to a model file to one expressed relative to a template.

Namespace:  Microsoft.VisualStudio.TextTemplating.VSHost
Assembly:  Microsoft.VisualStudio.TextTemplating.Modeling.10.0 (in Microsoft.VisualStudio.TextTemplating.Modeling.10.0.dll)

Syntax

'Declaration
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.UnmanagedCode)> _
Protected Shared Function ConvertModelRelativePathToTemplateRelativePath ( _
    modelPath As String, _
    templatePath As String, _
    path As String _
) As String
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
protected static string ConvertModelRelativePathToTemplateRelativePath(
    string modelPath,
    string templatePath,
    string path
)
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::UnmanagedCode)]
protected:
static String^ ConvertModelRelativePathToTemplateRelativePath(
    String^ modelPath, 
    String^ templatePath, 
    String^ path
)
[<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)>]
static member ConvertModelRelativePathToTemplateRelativePath : 
        modelPath:string * 
        templatePath:string * 
        path:string -> string 
protected static function ConvertModelRelativePathToTemplateRelativePath(
    modelPath : String, 
    templatePath : String, 
    path : String
) : String

Parameters

  • templatePath
    Type: System.String
    The full path of the template file.

Return Value

Type: System.String

Remarks

The converted path.

.NET Framework Security

See Also

Reference

ModelingTextTransformation Class

Microsoft.VisualStudio.TextTemplating.VSHost Namespace