Namespace: Microsoft.VisualStudio.TextTemplating.VSHost
Assembly: Microsoft.VisualStudio.TextTemplating.VSHost (in Microsoft.VisualStudio.TextTemplating.VSHost.dll)
Syntax
'宣言
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.UnmanagedCode)> _
Protected Shared Function ConvertModelRelativePathToTemplateRelativePath ( _
modelPath As String, _
templatePath As String, _
path As String _
) As String
'使用
Dim modelPath As String
Dim templatePath As String
Dim path As String
Dim returnValue As String
returnValue = ModelingTextTransformation.ConvertModelRelativePathToTemplateRelativePath(modelPath, _
templatePath, path)
[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
)
protected static function ConvertModelRelativePathToTemplateRelativePath(
modelPath : String,
templatePath : String,
path : String
) : String
Parameters
- modelPath
Type: System.String
- templatePath
Type: System.String
- path
Type: System.String
Return Value
Type: System.String
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ModelingTextTransformation Class