Share via


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.

[SECURITY CRITICAL]

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

Syntax

'Declaration
<SecurityCriticalAttribute> _
Protected Shared Function ConvertModelRelativePathToTemplateRelativePath ( _
    modelPath As String, _
    templatePath As String, _
    path As String _
) As String
[SecurityCriticalAttribute]
protected static string ConvertModelRelativePathToTemplateRelativePath(
    string modelPath,
    string templatePath,
    string path
)
[SecurityCriticalAttribute]
protected:
static String^ ConvertModelRelativePathToTemplateRelativePath(
    String^ modelPath, 
    String^ templatePath, 
    String^ path
)
[<SecurityCriticalAttribute>]
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

See Also

Reference

ModelingTextTransformation Class

Microsoft.VisualStudio.TextTemplating.VSHost Namespace