ModelingTextTransformation.ConvertModelRelativePathToTemplateRelativePath 方法

将相对于模型文件表示的路径转换为相对于模板表示的路径。

命名空间:  Microsoft.VisualStudio.TextTemplating.VSHost
程序集:  Microsoft.VisualStudio.TextTemplating.Modeling.10.0(在 Microsoft.VisualStudio.TextTemplating.Modeling.10.0.dll 中)

语法

声明
<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

参数

  • modelPath
    类型:System.String
    模型文件的完整路径。
  • templatePath
    类型:System.String
    模板文件的完整路径。

返回值

类型:System.String

备注

转换后的路径。

.NET Framework 安全性

请参见

参考

ModelingTextTransformation 类

Microsoft.VisualStudio.TextTemplating.VSHost 命名空间