ModelingTextTransformation.ConvertModelRelativePathToTemplateRelativePath Method

This member has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses this member throws a MethodAccessException.


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.11.0 (in Microsoft.VisualStudio.TextTemplating.Modeling.11.0.dll)


<SecurityCriticalAttribute> _
Protected Shared Function ConvertModelRelativePathToTemplateRelativePath ( _
    modelPath As String, _
    templatePath As String, _
    path As String _
) As String
protected static string ConvertModelRelativePathToTemplateRelativePath(
    string modelPath,
    string templatePath,
    string path
static String^ ConvertModelRelativePathToTemplateRelativePath(
    String^ modelPath, 
    String^ templatePath, 
    String^ path
static member ConvertModelRelativePathToTemplateRelativePath : 
        modelPath:string * 
        templatePath:string * 
        path:string -> string
protected static function ConvertModelRelativePathToTemplateRelativePath(
    modelPath : String, 
    templatePath : String, 
    path : String
) : String


  • modelPath
    Type: String

    The full path of the model file.

  • templatePath
    Type: String

    The full path of the template file.

  • path
    Type: String

    The path to be converted.

Return Value

Type: String

See Also


ModelingTextTransformation Class

Microsoft.VisualStudio.TextTemplating.VSHost Namespace