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 命名空間