次の方法で共有


ModelingTextTransformation.ConvertModelRelativePathToTemplateRelativePath メソッド

このメンバーは SecurityCriticalAttribute 属性を持っているため、使用は .NET Framework for Silverlight クラス ライブラリでの内部用に限定されます。アプリケーション コードでこのメンバーを使用すると、MethodAccessException 例外がスローされます。

[セキュリティ クリティカル]

モデル ファイルを基準とする相対パスを、テンプレートを基準とする相対パスに変換します。

名前空間:  Microsoft.VisualStudio.TextTemplating.VSHost
アセンブリ:  Microsoft.VisualStudio.TextTemplating.Modeling.11.0 (Microsoft.VisualStudio.TextTemplating.Modeling.11.0.dll 内)

構文

'宣言
<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

パラメーター

  • modelPath
    型 : System.String
    モデル ファイルの完全パス。
  • templatePath
    型 : System.String
    テンプレート ファイルの完全パス。

戻り値

型 : System.String

参照

関連項目

ModelingTextTransformation クラス

Microsoft.VisualStudio.TextTemplating.VSHost 名前空間