モデル ファイルを基準とする相対パスを、テンプレートを基準とする相対パスに変換します。
名前空間: 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
テンプレート ファイルの完全パス。
- path
型: System.String
変換するパス。
戻り値
解説
変換されたパス。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。