此成员具有 SecurityCriticalAttribute 特性,此特性将其限定为只能由 .NET Framework for Silverlight 类库在内部使用。使用此成员的应用程序代码将引发 MethodAccessException。
[SECURITY CRITICAL]
将相对于模型文件表示的路径转换为相对于模板表示的路径。
命名空间: Microsoft.VisualStudio.TextTemplating.VSHost
程序集: Microsoft.VisualStudio.TextTemplating.Modeling.12.0(在 Microsoft.VisualStudio.TextTemplating.Modeling.12.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
类型:String模型文件的完整路径。
templatePath
类型:String模板文件的完整路径。
path
类型:String要转换的路径。
返回值
类型:String